diff --git a/src/SeerEditorWidgetAssemblyAreas.cpp b/src/SeerEditorWidgetAssemblyAreas.cpp index 7bf197d..4fd5948 100644 --- a/src/SeerEditorWidgetAssemblyAreas.cpp +++ b/src/SeerEditorWidgetAssemblyAreas.cpp @@ -158,6 +158,8 @@ void SeerEditorWidgetAssemblyArea::enableMiniMapArea (bool flag) { _enableMiniMapArea = flag; + setVerticalScrollBarPolicy(flag ? Qt::ScrollBarAlwaysOff : Qt::ScrollBarAsNeeded); + invalidateMiniMapCache(); updateMarginAreasWidth(0); } diff --git a/src/SeerEditorWidgetSourceAreas.cpp b/src/SeerEditorWidgetSourceAreas.cpp index 4645954..84ba67b 100644 --- a/src/SeerEditorWidgetSourceAreas.cpp +++ b/src/SeerEditorWidgetSourceAreas.cpp @@ -135,6 +135,8 @@ void SeerEditorWidgetSourceArea::enableMiniMapArea (bool flag) { _enableMiniMapArea = flag; + setVerticalScrollBarPolicy(flag ? Qt::ScrollBarAlwaysOff : Qt::ScrollBarAsNeeded); + invalidateMiniMapCache(); updateMarginAreasWidth(0); }