浏览代码

spreadjs动态图片按钮绘制问题

maixinrong 5 年之前
父节点
当前提交
a4392eec49
共有 1 个文件被更改,包括 1 次插入1 次删除
  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);