diff options
| author | Bob Zeleznik <zzzman@gmail.com> | 2020-04-01 20:56:27 -0400 |
|---|---|---|
| committer | Bob Zeleznik <zzzman@gmail.com> | 2020-04-01 20:56:27 -0400 |
| commit | 6ae33795b8d23a5dd14593ba8963cf14ec0b2a0e (patch) | |
| tree | 9b70e4ef8d1757f112e54ef4005c2974261e37ce /src/client/views/DocumentButtonBar.tsx | |
| parent | 4859d4e3f5827c3341d43d19a5309d2ec25ab67b (diff) | |
fixed document box to have sizable borders using x/ypadding. enabled upSelector to select documentBox
Diffstat (limited to 'src/client/views/DocumentButtonBar.tsx')
| -rw-r--r-- | src/client/views/DocumentButtonBar.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/DocumentButtonBar.tsx b/src/client/views/DocumentButtonBar.tsx index c6fb9ad0b..b0c701b65 100644 --- a/src/client/views/DocumentButtonBar.tsx +++ b/src/client/views/DocumentButtonBar.tsx @@ -312,7 +312,7 @@ export class DocumentButtonBar extends React.Component<{ views: (DocumentView | render() { if (!this.view0) return (null); - const isText = this.view0.props.Document.data instanceof RichTextField; // bcz: Todo - can't assume layout is using the 'data' field. need to add fieldKey to DocumentView + const isText = this.view0.props.Document[Doc.LayoutFieldKey(this.view0.props.Document)] instanceof RichTextField; const considerPull = isText && this.considerGoogleDocsPull; const considerPush = isText && this.considerGoogleDocsPush; return <div className="documentButtonBar"> |
