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(); } }