From b5c5410b4af5d2c68d2107d3f064f6e3ec4ac3f2 Mon Sep 17 00:00:00 2001 From: Sophie Zhang Date: Thu, 25 Jan 2024 11:28:40 -0500 Subject: add setting bg color --- .../views/nodes/formattedText/FormattedTextBox.tsx | 26 ++++++++++++---------- 1 file changed, 14 insertions(+), 12 deletions(-) (limited to 'src/client/views/nodes/formattedText') diff --git a/src/client/views/nodes/formattedText/FormattedTextBox.tsx b/src/client/views/nodes/formattedText/FormattedTextBox.tsx index 5fdfbce99..563b6a25d 100644 --- a/src/client/views/nodes/formattedText/FormattedTextBox.tsx +++ b/src/client/views/nodes/formattedText/FormattedTextBox.tsx @@ -1145,20 +1145,22 @@ export class FormattedTextBox extends ViewBoxAnnotatableComponent width && layout_autoHeight && this.resetNativeHeight(scrollHeight), { fireImmediately: true } ); - this._disposers.width = reaction( + this._disposers.bgColor = reaction( () => this.rootDoc._backgroundColor, color => this.checkBackgroundColor() ); -- cgit v1.2.3-70-g09d2