diff options
author | bobzel <zzzman@gmail.com> | 2020-12-12 22:52:26 -0500 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-12-12 22:52:26 -0500 |
commit | 890dd1c3d8d6a00cf3111972c20f7b5b9cb09085 (patch) | |
tree | e5a3b38b32771dd1d2162ca8cb30d82700423f9d /src/client/views/presentationview/PresElementBox.tsx | |
parent | 9ca004669a7882123277eb46cad8e86b28305266 (diff) |
made conentScaling a DocumentView-only prop
Diffstat (limited to 'src/client/views/presentationview/PresElementBox.tsx')
-rw-r--r-- | src/client/views/presentationview/PresElementBox.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/presentationview/PresElementBox.tsx b/src/client/views/presentationview/PresElementBox.tsx index 3b6b0259d..8615ba81d 100644 --- a/src/client/views/presentationview/PresElementBox.tsx +++ b/src/client/views/presentationview/PresElementBox.tsx @@ -78,7 +78,7 @@ export class PresElementBox extends ViewBoxBaseComponent<FieldViewProps, PresDoc // embedWidth = () => this.props.PanelWidth(); // embedHeight = () => Math.min(this.props.PanelWidth() - 20, this.props.PanelHeight() - this.collapsedHeight); embedWidth = (): number => this.props.PanelWidth() - 35; - styleProvider = (doc: (Doc | undefined), props: Opt<DocumentViewProps>, property: string): any => { + styleProvider = (doc: (Doc | undefined), props: Opt<DocumentViewProps | FieldViewProps>, property: string): any => { if (property === StyleProp.Opacity) return 1; return this.props.styleProvider?.(doc, props, property); } |