File tree Expand file tree Collapse file tree
plugins/field-multilineinput/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -312,12 +312,7 @@ export class FieldMultilineInput extends Blockly.FieldTextInput {
312312 let totalHeight = 0 ;
313313 for ( let i = 0 ; i < nodes . length ; i ++ ) {
314314 const tspan = nodes [ i ] as SVGTextElement ;
315- const textWidth = Blockly . utils . dom . getFastTextWidth (
316- tspan ,
317- fontSize ,
318- fontWeight ,
319- fontFamily ,
320- ) ;
315+ const textWidth = Blockly . utils . dom . getTextWidth ( tspan ) ;
321316 if ( textWidth > totalWidth ) {
322317 totalWidth = textWidth ;
323318 }
@@ -345,12 +340,7 @@ export class FieldMultilineInput extends Blockly.FieldTextInput {
345340 ) ;
346341 }
347342 dummyTextElement . textContent = actualEditorLines [ i ] ;
348- const lineWidth = Blockly . utils . dom . getFastTextWidth (
349- dummyTextElement ,
350- fontSize ,
351- fontWeight ,
352- fontFamily ,
353- ) ;
343+ const lineWidth = Blockly . utils . dom . getTextWidth ( dummyTextElement ) ;
354344 if ( lineWidth > totalWidth ) {
355345 totalWidth = lineWidth ;
356346 }
You can’t perform that action at this time.
0 commit comments