Explorar o código

spreadjs动态图片按钮绘制问题

maixinrong %!s(int64=5) %!d(string=hai) anos
pai
achega
a4392eec49
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);