diff options
author | bobzel <zzzman@gmail.com> | 2022-06-23 15:39:24 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2022-06-23 15:39:24 -0400 |
commit | c230b687f467c20613f411795afffcfa55989042 (patch) | |
tree | fe1c364561247e49f12246d9841c4679b48a05c2 /src/client/views/nodes/formattedText/FormattedTextBox.tsx | |
parent | eac5db4a6ae1ed3dbb2796fad92d090526dda537 (diff) |
fixes for getBounds (& docDecorations) for docs with scroll heights & native Heights/
Diffstat (limited to 'src/client/views/nodes/formattedText/FormattedTextBox.tsx')
-rw-r--r-- | src/client/views/nodes/formattedText/FormattedTextBox.tsx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/views/nodes/formattedText/FormattedTextBox.tsx b/src/client/views/nodes/formattedText/FormattedTextBox.tsx index d3dee3c89..9ae604e9b 100644 --- a/src/client/views/nodes/formattedText/FormattedTextBox.tsx +++ b/src/client/views/nodes/formattedText/FormattedTextBox.tsx @@ -854,6 +854,7 @@ export class FormattedTextBox extends ViewBoxAnnotatableComponent<(FieldViewProp return this._didScroll ? this._focusSpeed : undefined; // if we actually scrolled, then return some focusSpeed } + getScrollHeight = () => this.scrollHeight; // if the scroll height has changed and we're in autoHeight mode, then we need to update the textHeight component of the doc. // Since we also monitor all component height changes, this will update the document's height. resetNativeHeight = (scrollHeight: number) => { |