diff options
author | bobzel <zzzman@gmail.com> | 2020-09-14 17:42:57 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-09-14 17:42:57 -0400 |
commit | 1af6500a4b87fa25506a9b51d8fa7dbc0d68878b (patch) | |
tree | 5c541be0995eff51739c0a4d67f244cd91435184 /src/client/views | |
parent | 962badfb33c5011e9288966e5db2f8a222939e3a (diff) |
made custom header default to author/creationDate
Diffstat (limited to 'src/client/views')
-rw-r--r-- | src/client/views/DocComponent.tsx | 2 | ||||
-rw-r--r-- | src/client/views/nodes/FieldView.tsx | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/DocComponent.tsx b/src/client/views/DocComponent.tsx index ccfc37d4e..dad48d002 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", "fontSize", "left", "background", "top", "position"]; + const divKeys = ["width", "height", "fontSize", "left", "background", "top", "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 || ""; }; diff --git a/src/client/views/nodes/FieldView.tsx b/src/client/views/nodes/FieldView.tsx index 0073ff77f..f0c2f834d 100644 --- a/src/client/views/nodes/FieldView.tsx +++ b/src/client/views/nodes/FieldView.tsx @@ -60,6 +60,7 @@ export interface FieldViewProps { childLayoutTemplate?: () => Opt<Doc>; // properties intended to be used from within layout strings (otherwise use the function equivalents that work more efficiently with React) fontSize?: number; + pointerEvents?: string; height?: number; width?: number; background?: string; |