diff options
author | bobzel <zzzman@gmail.com> | 2022-03-23 18:30:59 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2022-03-23 18:30:59 -0400 |
commit | 70cd320fb02993b2abb17dcfb2a3fd1dfefabb36 (patch) | |
tree | 6f389ff05f97efa8353150e6a983b276027d33f5 /src/client/views/DocumentDecorations.tsx | |
parent | 16fcee6f6729a6250d8956b0bd4f4ba8fe533e7e (diff) |
adjsuted pdfBox and WebBox to resize better without glitches when using the annotation sidebar. changed so that when fitWidth is set anything can be resized vertically - causes artifacts for videoBoxes.
Diffstat (limited to 'src/client/views/DocumentDecorations.tsx')
-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 d0b5bfe46..39591e417 100644 --- a/src/client/views/DocumentDecorations.tsx +++ b/src/client/views/DocumentDecorations.tsx @@ -339,7 +339,7 @@ export class DocumentDecorations extends React.Component<{ PanelWidth: number, P } let actualdW = Math.max(width + (dW * scale), 20); let actualdH = Math.max(height + (dH * scale), 20); - const fixedAspect = (nwidth && nheight); + const fixedAspect = (nwidth && nheight && !doc._fitWidth); if (fixedAspect) { if ((Math.abs(dW) > Math.abs(dH) && (!dragBottom || !modifyNativeDim)) || dragRight) { if (dragRight && modifyNativeDim) { |