diff options
author | bobzel <zzzman@gmail.com> | 2021-07-15 10:33:54 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2021-07-15 10:33:54 -0400 |
commit | 6ecd0222232a9fd1ac1f9c915cfb192a0da7dac1 (patch) | |
tree | 53a37e9f2c6bc2111f1de7242bcaca6065f6c04d /src/client/views/DocComponent.tsx | |
parent | 0400d09d8fc52e5c5ded50d9b8c0dfab400fd111 (diff) |
hide sidebar handle and fix scrolling for secondary formattedTextBox views (eg when in a layout template)
Diffstat (limited to 'src/client/views/DocComponent.tsx')
-rw-r--r-- | src/client/views/DocComponent.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/DocComponent.tsx b/src/client/views/DocComponent.tsx index 0b54e3cd6..da8af7cc0 100644 --- a/src/client/views/DocComponent.tsx +++ b/src/client/views/DocComponent.tsx @@ -119,7 +119,7 @@ export function ViewBoxAnnotatableComponent<P extends ViewBoxAnnotatableProps, T styleFromLayoutString = (scale: number) => { const style: { [key: string]: any } = {}; - const divKeys = ["width", "height", "fontSize", "left", "background", "top", "pointerEvents", "position"]; + const divKeys = ["width", "height", "fontSize", "left", "background", "left", "right", "top", "bottom", "pointerEvents", "position"]; const replacer = (match: any, expr: string, offset: any, string: any) => { // bcz: this executes a script to convert a property expression string: { script } into a value return ScriptField.MakeFunction(expr, { self: Doc.name, this: Doc.name, scale: "number" })?.script.run({ self: this.rootDoc, this: this.layoutDoc, scale }).result as string || ""; }; |