mirror of
https://github.com/google/blockly.git
synced 2026-01-07 17:10:11 +01:00
* feat: Remove references to getFastTextWidth (#8277) * format
This commit is contained in:
@@ -835,12 +835,7 @@ export abstract class Field<T = any>
|
||||
|
||||
let contentWidth = 0;
|
||||
if (this.textElement_) {
|
||||
contentWidth = dom.getFastTextWidth(
|
||||
this.textElement_,
|
||||
constants!.FIELD_TEXT_FONTSIZE,
|
||||
constants!.FIELD_TEXT_FONTWEIGHT,
|
||||
constants!.FIELD_TEXT_FONTFAMILY,
|
||||
);
|
||||
contentWidth = dom.getTextWidth(this.textElement_);
|
||||
totalWidth += contentWidth;
|
||||
}
|
||||
if (!this.isFullBlockField()) {
|
||||
|
||||
Reference in New Issue
Block a user