File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -67,9 +67,9 @@ export const editSvgText = function (mei: MindElixirInstance, textEl: SVGTextEle
6767 div . textContent = origin
6868 div . contentEditable = 'true'
6969 div . spellcheck = false
70- const l = textEl . getAttribute ( 'x' ) + 'px'
71- const t = textEl . getAttribute ( 'y' ) + 'px'
72- div . style . cssText = `min-width:${ 100 - 8 } px;position:absolute;left:${ l } ;top:${ t } ;`
70+ const l = textEl . getAttribute ( 'x' )
71+ const t = textEl . getAttribute ( 'y' )
72+ div . style . cssText = `min-width:${ 88 } px;position:absolute;left:${ l } px ;top:${ t } px ;`
7373 const anchor = textEl . getAttribute ( 'text-anchor' )
7474 if ( anchor === 'end' ) div . style . cssText += 'transform: translate(-100%, -100%);'
7575 else if ( anchor === 'middle' ) div . style . cssText += 'transform: translate(-50%, -100%);'
You can’t perform that action at this time.
0 commit comments