diff options
| author | bob <bcz@cs.brown.edu> | 2019-06-19 09:36:21 -0400 |
|---|---|---|
| committer | bob <bcz@cs.brown.edu> | 2019-06-19 09:36:21 -0400 |
| commit | 0674331f3611d297028526c888c718a75b012e0a (patch) | |
| tree | 47a240a65dee71827bfe9a1aba7e2379bdb346de /src/client/views/DocumentDecorations.tsx | |
| parent | 1472d2b56aa64896f0a93f172322121d19cd1592 (diff) | |
fixed resizing stacking views. changed defaults for new docs in treeView
Diffstat (limited to 'src/client/views/DocumentDecorations.tsx')
| -rw-r--r-- | src/client/views/DocumentDecorations.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/DocumentDecorations.tsx b/src/client/views/DocumentDecorations.tsx index e60f8c86c..d8642d675 100644 --- a/src/client/views/DocumentDecorations.tsx +++ b/src/client/views/DocumentDecorations.tsx @@ -503,8 +503,8 @@ export class DocumentDecorations extends React.Component<{}, { value: string }> proto.nativeWidth = (doc.width || 0) / doc.height * NumCast(proto.nativeHeight); } } else { - doc.width = zoomBasis * actualdW; - doc.height = zoomBasis * actualdH; + dW && (doc.width = zoomBasis * actualdW); + dH && (doc.height = zoomBasis * actualdH); proto.autoHeight = undefined; } } |
