diff options
author | bobzel <zzzman@gmail.com> | 2020-10-11 01:33:28 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-10-11 01:33:28 -0400 |
commit | 65448167a4db396b2ee3c56d870233f8ac182eb6 (patch) | |
tree | 28b1561d4fdf170543538cbc145d7381e93b9191 /src/client/views/nodes/formattedText/FormattedTextBox.tsx | |
parent | 858fdbf31c9ddbf00eae692cd43e70455a19e1b5 (diff) |
prevented documents that are unshared (ie private to soeone else) from showing up as an empty key value in stacking and other views. tried to fix an exception when showing links (that wasn't repeatable, so dion't know if fix works).
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 99a009d13..94a11e3ac 100644 --- a/src/client/views/nodes/formattedText/FormattedTextBox.tsx +++ b/src/client/views/nodes/formattedText/FormattedTextBox.tsx @@ -885,7 +885,7 @@ export class FormattedTextBox extends ViewBoxAnnotatableComponent<(FieldViewProp ({ width, autoHeight }) => width !== undefined && setTimeout(() => this.tryUpdateHeight(), 0) ); this._disposers.height = reaction( - () => NumCast(this.layoutDoc._height), + () => Cast(this.layoutDoc._height, "number", null), action(height => { if (height !== undefined && height <= 20 && height < NumCast(this.layoutDoc._delayAutoHeight, 20)) { this.layoutDoc._delayAutoHeight = height; |