From a0e368f404e266414af75da07cba73cd865929b2 Mon Sep 17 00:00:00 2001 From: 0JARVIS0 <709406687@qq.com> Date: Thu, 28 Nov 2019 10:32:20 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E9=A6=96=E6=AC=A1?= =?UTF-8?q?=E7=82=B9=E5=87=BB=E9=97=AA=E8=B7=B3=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- painter.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/painter.js b/painter.js index 33144f7..b06367b 100644 --- a/painter.js +++ b/painter.js @@ -554,22 +554,22 @@ Component({ this.bottomContext || (this.bottomContext = wx.createCanvasContext('bottom', this)); this.topContext || (this.topContext = wx.createCanvasContext('top', this)); this.globalContext || (this.globalContext = wx.createCanvasContext('k-canvas', this)); - new Pen(this.globalContext, palette).paint(); + new Pen(this.bottomContext, palette).paint(); + new Pen(this.globalContext, { + width, + height, + views: [] + }).paint(); new Pen(this.frontContext, { width, height, views: [] - }).paint() - new Pen(this.bottomContext, { - width, - height, - views: [] - }).paint() + }).paint(); new Pen(this.topContext, { width, height, views: [] - }).paint() + }).paint(); }); },