Browse Source

spreadjs动态图片按钮绘制问题

maixinrong 5 years ago
parent
commit
a4392eec49
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/public/js/spreadjs_rela/spreadjs_zh.js

+ 1 - 1
app/public/js/spreadjs_rela/spreadjs_zh.js

@@ -1624,7 +1624,7 @@ const SpreadJsObj = {
                         if (style.backColor) {
                             canvas.save();
                             canvas.fillStyle = style.backColor;
-                            canvas.fillRect(x + w - indent - img.width, y, img.width, h);
+                            canvas.fillRect(x + w - indent - img.width, y, img.width + indent, h);
                             canvas.restore();
                         }
                         canvas.drawImage(img, x + w - indent - img.width, y + (h - img.height) / 2);