Fixed issue in CanvasRenderer

This commit is contained in:
Arne van Iterson 2020-03-23 18:46:34 +01:00
parent 6db704f2c8
commit fb3aa86e1d

View File

@ -76,12 +76,12 @@ class CanvasRenderer {
0, 0,
child.width, child.height
);
} else if (child.style && child.w && child.h) {
ctx.fillStyle = child.style.fill;
ctx.fillRect(0, 0, child.w, child.h);
} else {
ctx.drawImage(img, 0, 0);
}
} else if (child.style && child.w && child.h) {
ctx.fillStyle = child.style.fill;
ctx.fillRect(0, 0, child.w, child.h);
}
// Handle children with children