diff options
author | Sam Wilkins <samwilkins333@gmail.com> | 2019-08-20 21:05:25 -0400 |
---|---|---|
committer | Sam Wilkins <samwilkins333@gmail.com> | 2019-08-20 21:05:25 -0400 |
commit | f9835d0a751e76d09cb81dc9de81972e7bc73bf1 (patch) | |
tree | d437aaf3e4de56dbdfa376cad459394d2499a58c | |
parent | bd734ec84fa8fae36fceebf74da44216a0746b23 (diff) |
auto height set on google docs publishing
-rw-r--r-- | src/client/views/DocumentDecorations.tsx | 3 |
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"}> |