From 467b6a2e798702b8222a5bee57b1b7d7ecf6250f Mon Sep 17 00:00:00 2001 From: Maribeth Bottorff Date: Thu, 20 Apr 2023 13:53:18 -0700 Subject: [PATCH] fix: rtl field alignment (#6991) --- core/field_input.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/field_input.ts b/core/field_input.ts index 1fba97b96..e14e2df32 100644 --- a/core/field_input.ts +++ b/core/field_input.ts @@ -29,6 +29,7 @@ import {Coordinate} from './utils/coordinate.js'; import * as userAgent from './utils/useragent.js'; import * as WidgetDiv from './widgetdiv.js'; import type {WorkspaceSvg} from './workspace_svg.js'; +import * as renderManagement from './render_management.js'; /** * Supported types for FieldInput subclasses. @@ -465,6 +466,11 @@ export abstract class FieldInput extends Field { */ private onHtmlInputChange_(_e: Event) { this.setValue(this.getValueFromEditorText_(this.htmlInput_!.value)); + + // Resize the widget div after the block has finished rendering. + renderManagement.finishQueuedRenders().then(() => { + this.resizeEditor_(); + }); } /**