diff options
author | bobzel <zzzman@gmail.com> | 2019-08-15 23:19:50 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-15 23:19:50 -0400 |
commit | e0986156ac3fa92d57f3fbe9bc5e36e413764357 (patch) | |
tree | 342a09d7ea8d95c897c74da095afde864e09ca55 /src/client/views/nodes/FormattedTextBox.tsx | |
parent | 46386fd73a06e52d606f891c812a9af0598eec79 (diff) | |
parent | a7307ca3dc46782cc9e4cae4daa9b30911ace1dd (diff) |
Merge pull request #249 from browngraphicslab/monika_ellie_UI
mac compatibility and UI
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 516e36d5b..330bd135d 100644 --- a/src/client/views/nodes/FormattedTextBox.tsx +++ b/src/client/views/nodes/FormattedTextBox.tsx @@ -616,7 +616,7 @@ export class FormattedTextBox extends DocComponent<(FieldViewProps & FormattedTe let dh = NumCast(this.props.Document.height, 0); let sh = scrBounds.height; const ChromeHeight = MainOverlayTextBox.Instance.ChromeHeight; - this.props.Document.height = (nh ? dh / nh * sh : sh) + (ChromeHeight ? ChromeHeight() : 0); + this.props.Document.height = Math.max(10, (nh ? dh / nh * sh : sh) + (ChromeHeight ? ChromeHeight() : 0)); this.dataDoc.nativeHeight = nh ? sh : undefined; } } |