diff options
author | bobzel <zzzman@gmail.com> | 2022-07-25 12:20:46 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2022-07-25 12:20:46 -0400 |
commit | 6e8c1844f0d8b31ab95da9e9025e7bfb58b0779a (patch) | |
tree | 0481209124a16234485b16150b5447007886410c | |
parent | d2f30910f30cf7016df42d86d452d45c1d408600 (diff) |
fixed maxHeight for resizing text boxes, collections etc.
-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 4d38a8194..922f037f4 100644 --- a/src/client/views/DocumentDecorations.tsx +++ b/src/client/views/DocumentDecorations.tsx @@ -522,7 +522,7 @@ export class DocumentDecorations extends React.Component<{ PanelWidth: number; P } } else { const maxHeight = Math.max(nheight, NumCast(doc.scrollHeight, NumCast(doc[docView.LayoutFieldKey + '-scrollHeight']))) * docView.NativeDimScaling(); - dH && (doc._height = actualdH > maxHeight ? maxHeight : actualdH); + dH && (doc._height = actualdH > maxHeight && maxHeight ? maxHeight : actualdH); dW && (doc._width = actualdW); dH && (doc._autoHeight = false); } |