diff options
author | bobzel <zzzman@gmail.com> | 2020-09-14 14:53:20 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-09-14 14:53:20 -0400 |
commit | a3e34ebd705778e8bcc11f745087cff2bcafbcaf (patch) | |
tree | 30bff5f94925290c1aedb9fb20d4cfaaeeb48c5a /src/client/views/DocComponent.tsx | |
parent | daf6c3eb00bec549947db9c5fdbcec09a9251bf0 (diff) |
updated the custom text box to specify frontSize through document values.
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 aa888b34a..ccfc37d4e 100644 --- a/src/client/views/DocComponent.tsx +++ b/src/client/views/DocComponent.tsx @@ -104,7 +104,7 @@ export function ViewBoxAnnotatableComponent<P extends ViewBoxAnnotatableProps, T styleFromLayoutString = (scale: number) => { const style: { [key: string]: any } = {}; - const divKeys = ["width", "height", "background", "top", "position"]; + const divKeys = ["width", "height", "fontSize", "left", "background", "top", "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 || ""; }; |