--- a/src/eric7/EricWidgets/EricAutoResizeTextBrowser.py Thu Apr 10 18:35:46 2025 +0200 +++ b/src/eric7/EricWidgets/EricAutoResizeTextBrowser.py Thu Apr 10 18:36:24 2025 +0200 @@ -54,11 +54,14 @@ # Get the document height and set it as the fixed height of the text browser. docHeight = self.document().size().height() - self.setFixedHeight(int(docHeight) + ( - self.horizontalScrollBar().height() - if self.horizontalScrollBar().isVisible() - else 0 - )) + self.setFixedHeight( + int(docHeight) + + ( + self.horizontalScrollBar().height() + if self.horizontalScrollBar().isVisible() + else 0 + ) + ) # Call the base class updateGeometry() method. super().updateGeometry()