diff options
| author | Bob Zeleznik <zzzman@gmail.com> | 2019-06-02 13:24:02 -0400 | 
|---|---|---|
| committer | Bob Zeleznik <zzzman@gmail.com> | 2019-06-02 13:24:02 -0400 | 
| commit | b86a60410675f6cf6e46c56bc12cf689245583f0 (patch) | |
| tree | a24bca3d86f981b6bc2d6ee33572b04c47fc01fe /src/client/views/DocumentDecorations.tsx | |
| parent | 448996fbc234b82a27da952f85587a27cabe8881 (diff) | |
fixes for stackingview for single vs multi-column.  single needs work.
Diffstat (limited to 'src/client/views/DocumentDecorations.tsx')
| -rw-r--r-- | src/client/views/DocumentDecorations.tsx | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/DocumentDecorations.tsx b/src/client/views/DocumentDecorations.tsx index e06fd6119..da9b1253e 100644 --- a/src/client/views/DocumentDecorations.tsx +++ b/src/client/views/DocumentDecorations.tsx @@ -433,6 +433,7 @@ export class DocumentDecorations extends React.Component<{}, { value: string }>              if (rect.width !== 0 && (dX != 0 || dY != 0 || dW != 0 || dH != 0)) {                  let doc = PositionDocument(element.props.Document); +                let docHeightBefore = doc.height;                  let nwidth = doc.nativeWidth || 0;                  let nheight = doc.nativeHeight || 0;                  let zoomBasis = NumCast(doc.zoomBasis, 1); @@ -452,7 +453,7 @@ export class DocumentDecorations extends React.Component<{}, { value: string }>                      }                  } else {                      doc.width = zoomBasis * actualdW; -                    doc.height = zoomBasis * actualdH; +                    if (docHeightBefore === doc.height) doc.height = zoomBasis * actualdH;                  }              }          });  | 
