diff options
author | kimdahey <claire_kim1@brown.edu> | 2019-09-10 19:16:59 -0400 |
---|---|---|
committer | kimdahey <claire_kim1@brown.edu> | 2019-09-10 19:16:59 -0400 |
commit | 66d510b95c7e70049df6208dbe91ff4600058b27 (patch) | |
tree | 8cb061c2dc7b116c0ef4b8bf402c2928388260a3 /src/client/views/MainOverlayTextBox.tsx | |
parent | 9b2562906bf3b87f18854dcaab9ad12b19dc3fce (diff) | |
parent | ec62b213439ab49134fa2dbbdf38a6d1ef5737cd (diff) |
pulled from master
Diffstat (limited to 'src/client/views/MainOverlayTextBox.tsx')
-rw-r--r-- | src/client/views/MainOverlayTextBox.tsx | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/client/views/MainOverlayTextBox.tsx b/src/client/views/MainOverlayTextBox.tsx index 755e5de14..c3a2cb214 100644 --- a/src/client/views/MainOverlayTextBox.tsx +++ b/src/client/views/MainOverlayTextBox.tsx @@ -25,7 +25,6 @@ export class MainOverlayTextBox extends React.Component<MainOverlayTextBoxProps> private _textTargetDiv: HTMLDivElement | undefined; private _textProxyDiv: React.RefObject<HTMLDivElement>; private _textBottom: boolean | undefined; - private _textAutoHeight: boolean | undefined; private _setouterdiv = (outerdiv: HTMLElement | null) => { this._outerdiv = outerdiv; this.updateTooltip(); }; private _outerdiv: HTMLElement | null = null; private _textBox: FormattedTextBox | undefined; @@ -48,11 +47,6 @@ export class MainOverlayTextBox extends React.Component<MainOverlayTextBoxProps> MainOverlayTextBox.Instance = this; reaction(() => FormattedTextBox.InputBoxOverlay, (box?: FormattedTextBox) => { - const tb = this._textBox; - const container = tb && tb.props.ContainingCollectionView; - if (tb && container) { - tb.rebuildEditor();// this forces the edited text box to completely recreate itself to avoid get out of sync -- e.g., bullet labels are only computed when the dom elements are created - } this._textBox = box; if (box) { this.ChromeHeight = box.props.ChromeHeight; |