From 6e8c1844f0d8b31ab95da9e9025e7bfb58b0779a Mon Sep 17 00:00:00 2001 From: bobzel Date: Mon, 25 Jul 2022 12:20:46 -0400 Subject: fixed maxHeight for resizing text boxes, collections etc. --- src/client/views/DocumentDecorations.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); } -- cgit v1.2.3-70-g09d2