diff options
author | bob <bcz@cs.brown.edu> | 2019-08-23 16:47:49 -0400 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-08-23 16:47:49 -0400 |
commit | 538187907421057212eca1eadbe07c8b79705d1d (patch) | |
tree | c8cc1a2852948634a9bda95d829480f411f9f735 /src/client/views/nodes/FormattedTextBox.tsx | |
parent | da192a9f580174e3b452079026e70d5c08d8a90f (diff) |
fixed text scrolling issues.
Diffstat (limited to 'src/client/views/nodes/FormattedTextBox.tsx')
-rw-r--r-- | src/client/views/nodes/FormattedTextBox.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/FormattedTextBox.tsx b/src/client/views/nodes/FormattedTextBox.tsx index 0e04bacf7..91596e825 100644 --- a/src/client/views/nodes/FormattedTextBox.tsx +++ b/src/client/views/nodes/FormattedTextBox.tsx @@ -796,7 +796,7 @@ export class FormattedTextBox extends DocComponent<(FieldViewProps & FormattedTe tryUpdateHeight() { const ChromeHeight = this.props.ChromeHeight; let sh = this._ref.current ? this._ref.current.scrollHeight : 0; - if (this.props.Document.autoHeight && sh !== 0) { + if (!this.props.isOverlay && this.props.Document.autoHeight && sh !== 0) { let nh = this.props.Document.isTemplate ? 0 : NumCast(this.dataDoc.nativeHeight, 0); let dh = NumCast(this.props.Document.height, 0); this.props.Document.height = Math.max(10, (nh ? dh / nh * sh : sh) + (ChromeHeight ? ChromeHeight() : 0)); |