diff options
author | bob <bcz@cs.brown.edu> | 2019-11-18 09:52:42 -0500 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-11-18 09:52:42 -0500 |
commit | 398d3f307ec177671ba43920258d0f23a58e49f2 (patch) | |
tree | 5c58fc3220c78ade2c4e78769c62760182c2a9c9 | |
parent | 51afa433365bfbc97bb0ddf3631317ca9c9ea872 (diff) |
fixed sidebar toggle.
-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 35212b732..4a79a44d4 100644 --- a/src/client/views/nodes/FormattedTextBox.tsx +++ b/src/client/views/nodes/FormattedTextBox.tsx @@ -1011,7 +1011,7 @@ export class FormattedTextBox extends DocAnnotatableComponent<(FieldViewProps & } } - @computed get sidebarWidthPercent() { return StrCast(this.props.Document.sidebarWidth, "0%"); } + @computed get sidebarWidthPercent() { return StrCast(this.props.Document.sidebarWidthPercent, "0%"); } @computed get sidebarWidth() { return Number(this.sidebarWidthPercent.substring(0, this.sidebarWidthPercent.length - 1)) / 100 * this.props.PanelWidth(); } @computed get annotationsKey() { return "annotations"; } render() { |