aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSam Wilkins <samwilkins333@gmail.com>2019-08-20 21:05:25 -0400
committerSam Wilkins <samwilkins333@gmail.com>2019-08-20 21:05:25 -0400
commitf9835d0a751e76d09cb81dc9de81972e7bc73bf1 (patch)
treed437aaf3e4de56dbdfa376cad459394d2499a58c /src
parentbd734ec84fa8fae36fceebf74da44216a0746b23 (diff)
auto height set on google docs publishing
Diffstat (limited to 'src')
-rw-r--r--src/client/views/DocumentDecorations.tsx3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/client/views/DocumentDecorations.tsx b/src/client/views/DocumentDecorations.tsx
index 3482fd043..891fd7847 100644
--- a/src/client/views/DocumentDecorations.tsx
+++ b/src/client/views/DocumentDecorations.tsx
@@ -694,6 +694,9 @@ export class DocumentDecorations extends React.Component<{}, { value: string }>
let canPush = this.targetDoc.data && this.targetDoc.data instanceof RichTextField;
if (!canPush) return (null);
let published = Doc.GetProto(this.targetDoc)[GoogleRef] !== undefined;
+ if (!published) {
+ this.targetDoc.autoHeight = true;
+ }
let icon: IconProp = published ? (this.pushIcon as any) : cloud;
return (
<div className={"linkButtonWrapper"}>