aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2020-09-11 21:01:06 -0400
committerbobzel <zzzman@gmail.com>2020-09-11 21:01:06 -0400
commit8f70b2f3145f962e42c5388e923c5dd1cfcfa716 (patch)
tree334c2d5c54f08dc8052ccb99f895e08cd4302674 /src
parentf6bb38fe934fbc8de3a88235ee06c6563af807c0 (diff)
caught exception in formatted text when nagivating to a Slide in presentationv iew.
Diffstat (limited to 'src')
-rw-r--r--src/client/views/nodes/formattedText/FormattedTextBox.tsx6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/client/views/nodes/formattedText/FormattedTextBox.tsx b/src/client/views/nodes/formattedText/FormattedTextBox.tsx
index a5e86d672..29d9283e7 100644
--- a/src/client/views/nodes/formattedText/FormattedTextBox.tsx
+++ b/src/client/views/nodes/formattedText/FormattedTextBox.tsx
@@ -1492,8 +1492,10 @@ export class FormattedTextBox extends ViewBoxAnnotatableComponent<(FieldViewProp
this.layoutDoc._nativeHeight = nh ? scrollHeight : undefined;
}, 10);
} else {
- this.layoutDoc._height = newHeight;
- this.layoutDoc._nativeHeight = nh ? scrollHeight : undefined;
+ try {
+ this.layoutDoc._height = newHeight;
+ this.layoutDoc._nativeHeight = nh ? scrollHeight : undefined;
+ } catch (e) { console.log("Error in tryUpdateHeight"); }
}
}
}