diff options
| author | bobzel <zzzman@gmail.com> | 2025-01-07 01:38:13 -0500 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2025-01-07 01:38:13 -0500 |
| commit | 97e4ee75a43380a6fad6e7a357504b9c15b4fcf9 (patch) | |
| tree | 264eeb322ed161896c81819df258c0acd20bc67c | |
| parent | 93ee735e435de5949a0eec54c07537c4de2eedf4 (diff) | |
fix for changing nativeHeight of pdfs
| -rw-r--r-- | src/client/views/DocumentDecorations.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/DocumentDecorations.tsx b/src/client/views/DocumentDecorations.tsx index a19ad8a5c..d4300cdcb 100644 --- a/src/client/views/DocumentDecorations.tsx +++ b/src/client/views/DocumentDecorations.tsx @@ -560,7 +560,7 @@ export class DocumentDecorations extends ObservableReactComponent<DocumentDecora } } if (['bottom', 'top'].includes(opts.dragHdl) && modifyNativeDim && Doc.NativeHeight(doc)) { - const setData = Doc.NativeHeight(doc[DocData]) === doc.nativeHeight; + const setData = Doc.NativeHeight(doc[DocData]) === doc.nativeHeight && (!doc.layout_reflowVertical || opts.ctrlKey); doc._nativeHeight = scale.y * Doc.NativeHeight(doc); if (setData) Doc.SetNativeHeight(doc[DocData], NumCast(doc._nativeHeight)); } |
