Skip to content

Commit

Permalink
fix(wxa): set zlevel for main layer, fix bug for backgroundColor on wxa
Browse files Browse the repository at this point in the history
  • Loading branch information
Ovilia committed Mar 2, 2018
1 parent 56e1ffc commit e043b2f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Painter.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ var Painter = function (root, storage, opts) {
// FIXME Use canvas width and height
// mainLayer.resize(width, height);
layers[CANVAS_ZLEVEL] = mainLayer;
mainLayer.zlevel = CANVAS_ZLEVEL;
// Not use common zlevel.
zlevelList.push(CANVAS_ZLEVEL);

Expand Down

0 comments on commit e043b2f

Please sign in to comment.