mirror of
https://gitee.com/hoslay/ddei-editor.git
synced 2025-12-07 01:28:28 +08:00
粘贴文本时宽度不够问题
This commit is contained in:
parent
ead8547b15
commit
37bc83d36e
@ -279,9 +279,8 @@ class DDeiKeyActionPaste extends DDeiKeyAction {
|
||||
{ modelCode: "100002" },
|
||||
searchPaths
|
||||
);
|
||||
let stageRatio = stage.getStageRatio()
|
||||
//获取文本高度宽度
|
||||
let size = DDeiUtil.measureTextSize(stage.ddInstance, textData, configAtrs.get('font.family').data, configAtrs.get('font.size').data * stageRatio)
|
||||
let size = DDeiUtil.measureTextSize(stage.ddInstance, textData, configAtrs.get('font.family').data, configAtrs.get('font.size').data+1)
|
||||
|
||||
|
||||
let dataJson = {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user