aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/PropertiesView.tsx
diff options
context:
space:
mode:
authorgeireann <60007097+geireann@users.noreply.github.com>2020-11-25 00:11:45 +0800
committergeireann <60007097+geireann@users.noreply.github.com>2020-11-25 00:11:45 +0800
commit2163ecd955882965bde452861879a51f92706c89 (patch)
tree513338515d1fca149110883f4eb9b3d529587122 /src/client/views/PropertiesView.tsx
parent6efc3545ccca2bcb0aaf219b2a9ff1c4f06e9e91 (diff)
parent236bed717c721f56a60a57b189241a4cf714463c (diff)
Merge branch 'master' into presentation_v1
Diffstat (limited to 'src/client/views/PropertiesView.tsx')
-rw-r--r--src/client/views/PropertiesView.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/views/PropertiesView.tsx b/src/client/views/PropertiesView.tsx
index fad2f5284..245e612b3 100644
--- a/src/client/views/PropertiesView.tsx
+++ b/src/client/views/PropertiesView.tsx
@@ -36,7 +36,7 @@ const _global = (window /* browser */ || global /* node */) as any;
interface PropertiesViewProps {
width: number;
height: number;
- backgroundColor: (doc: Opt<Doc>, renderDepth: number) => Opt<string>;
+ styleProvider?: (doc: Opt<Doc>, renderDepth: number, property: string, layerProvider?: (doc: Doc, assign?: boolean) => boolean) => any;
}
@observer
@@ -270,10 +270,10 @@ export class PropertiesView extends React.Component<PropertiesViewProps> {
renderDepth={1}
rootSelected={returnFalse}
treeViewDoc={undefined}
- backgroundColor={this.props.backgroundColor}
+ styleProvider={this.props.styleProvider}
fitToBox={true}
FreezeDimensions={true}
- dontCenter={true}
+ dontCenter={"y"}
NativeWidth={layoutDoc.type === DocumentType.RTF ? this.rtfWidth : undefined}
NativeHeight={layoutDoc.type === DocumentType.RTF ? this.rtfHeight : undefined}
PanelWidth={panelWidth}