From f2108084da52448b30589c46079e08ffba3c6bfa Mon Sep 17 00:00:00 2001 From: Eberhard Graether Date: Tue, 28 May 2019 12:03:26 +0200 Subject: [PATCH] ui: Added another updateGeometry call to single file view to prevent white space at end and wrong scroll positions --- src/lib_gui/qt/element/QtCodeFileSingle.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib_gui/qt/element/QtCodeFileSingle.cpp b/src/lib_gui/qt/element/QtCodeFileSingle.cpp index ae6af8b8..b31465de 100644 --- a/src/lib_gui/qt/element/QtCodeFileSingle.cpp +++ b/src/lib_gui/qt/element/QtCodeFileSingle.cpp @@ -216,6 +216,9 @@ void QtCodeFileSingle::showContents() { m_area->show(); updateRefCount(m_area->getActiveLocationCount()); + + // Resizes the area to fix a bug where the area could be scrolled below the last line. + m_area->updateGeometry(); } }