Parcourir la source

spreadjs动态图片按钮绘制问题

maixinrong il y a 5 ans
Parent
commit
a4392eec49
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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);