diff options
| author | bobzel <zzzman@gmail.com> | 2021-09-21 10:27:31 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2021-09-21 10:27:31 -0400 |
| commit | b65157915070c520c3d6a3e67052b4a2b1b7b127 (patch) | |
| tree | 4f8ade0fc99ff5a4b6898238ff8f25114f5870ca /src/client/views/nodes/formattedText/FormattedTextBox.tsx | |
| parent | 6cdfb4f5cfa4233b0879ad638524dba777471895 (diff) | |
tried to make captions more readable when zoomed out by playing with scaling and overflow. removed sidebar button from captions.
Diffstat (limited to 'src/client/views/nodes/formattedText/FormattedTextBox.tsx')
| -rw-r--r-- | src/client/views/nodes/formattedText/FormattedTextBox.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/formattedText/FormattedTextBox.tsx b/src/client/views/nodes/formattedText/FormattedTextBox.tsx index ebd509669..617fa0bee 100644 --- a/src/client/views/nodes/formattedText/FormattedTextBox.tsx +++ b/src/client/views/nodes/formattedText/FormattedTextBox.tsx @@ -833,7 +833,7 @@ export class FormattedTextBox extends ViewBoxAnnotatableComponent<(FieldViewProp this._disposers.componentHeights = reaction( // set the document height when one of the component heights changes and autoHeight is on () => ({ sidebarHeight: this.sidebarHeight, textHeight: this.textHeight, autoHeight: this.autoHeight, marginsHeight: this.autoHeightMargins }), ({ sidebarHeight, textHeight, autoHeight, marginsHeight }) => { - autoHeight && this.props.setHeight(marginsHeight + Math.max(sidebarHeight, textHeight)); + autoHeight && this.props.setHeight?.(marginsHeight + Math.max(sidebarHeight, textHeight)); }, { fireImmediately: true }); this._disposers.links = reaction(() => DocListCast(this.Document.links), // if a link is deleted, then remove all hyperlinks that reference it from the text's marks newLinks => { |
