diff options
author | kimdahey <claire_kim1@brown.edu> | 2019-08-23 16:50:18 -0400 |
---|---|---|
committer | kimdahey <claire_kim1@brown.edu> | 2019-08-23 16:50:18 -0400 |
commit | 69303b8b4aca07fa5c1259039fca3a400d379ce5 (patch) | |
tree | 96f6d507814606f074208728f84393333ecf655e /src/client/views/nodes/FormattedTextBox.tsx | |
parent | c9d96b08bc32d040e9d0353edc84e775a5ac03b7 (diff) | |
parent | 538187907421057212eca1eadbe07c8b79705d1d (diff) |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web into doc_deco_claire
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 27520c81d..7efeabdf6 100644 --- a/src/client/views/nodes/FormattedTextBox.tsx +++ b/src/client/views/nodes/FormattedTextBox.tsx @@ -850,7 +850,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)); |