fix: Remove references to getFastTextWidth (#8277) (#8307)

* feat: Remove references to getFastTextWidth (#8277)

* format
This commit is contained in:
Gabriel Fleury
2024-07-22 19:14:17 -03:00
committed by GitHub
parent 26e6d80e15
commit 58abf6ef89
2 changed files with 3 additions and 18 deletions

View File

@@ -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()) {