|
@@ -493,9 +493,9 @@ var sheetCommonObj = {
|
|
|
ctx.fill();//画实心圆
|
|
ctx.fill();//画实心圆
|
|
|
ctx.closePath();
|
|
ctx.closePath();
|
|
|
ctx.restore();
|
|
ctx.restore();
|
|
|
|
|
+ w = w - imageWidth - imageMagin;
|
|
|
//这里的左对齐的,当显示的字长度超过空白地方时,要改成右对齐
|
|
//这里的左对齐的,当显示的字长度超过空白地方时,要改成右对齐
|
|
|
if(style.hAlign == 0){
|
|
if(style.hAlign == 0){
|
|
|
- w = w - imageWidth - imageMagin;
|
|
|
|
|
if(value){
|
|
if(value){
|
|
|
let textWidth = ctx.measureText(value).width;
|
|
let textWidth = ctx.measureText(value).width;
|
|
|
let spaceWidth = w;
|
|
let spaceWidth = w;
|
|
@@ -503,10 +503,7 @@ var sheetCommonObj = {
|
|
|
style.hAlign = 2;
|
|
style.hAlign = 2;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- }else if(style.hAlign == 2){//如果是右对齐的,往左边挪,给按钮留出空间
|
|
|
|
|
- x = x - imageWidth - imageMagin;
|
|
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
GC.Spread.Sheets.CellTypes.Text.prototype.paint.apply(this, arguments);
|
|
GC.Spread.Sheets.CellTypes.Text.prototype.paint.apply(this, arguments);
|