diff options
| author | bobzel <zzzman@gmail.com> | 2022-07-21 13:28:25 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2022-07-21 13:28:25 -0400 |
| commit | 8f0752368e4c5831b909050940dff42171d51ae7 (patch) | |
| tree | 0671a690c3470eefb51104af133b6dd5aa81337a /src/client/views/DocumentDecorations.tsx | |
| parent | 2c833fe4e7915b8219c6b48abb596e4359744750 (diff) | |
fixed undo for opening/closing sidebar for pdf/web/text. fixed lightboxview for pdf's with smaller heights.
Diffstat (limited to 'src/client/views/DocumentDecorations.tsx')
| -rw-r--r-- | src/client/views/DocumentDecorations.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/views/DocumentDecorations.tsx b/src/client/views/DocumentDecorations.tsx index c55daca3f..780dcfb6d 100644 --- a/src/client/views/DocumentDecorations.tsx +++ b/src/client/views/DocumentDecorations.tsx @@ -494,7 +494,9 @@ export class DocumentDecorations extends React.Component<{ PanelWidth: number; P if (fixedAspect) { if ((Math.abs(dW) > Math.abs(dH) && ((!dragBottom && !dragTop) || !modifyNativeDim)) || dragRight) { if (dragRight && modifyNativeDim) { - doc._nativeWidth = (actualdW / (doc._width || 1)) * Doc.NativeWidth(doc); + if (Doc.NativeWidth(doc)) { + doc._nativeWidth = (actualdW / (doc._width || 1)) * Doc.NativeWidth(doc); + } } else { if (!doc._fitWidth) { actualdH = (nheight / nwidth) * actualdW; |
