mirror of
https://github.com/epasveer/seer.git
synced 2026-08-29 08:34:42 +08:00
Hiding the scrollbar when the minimap is used, fixes the "gap" issue.
This commit is contained in:
@@ -158,6 +158,8 @@ void SeerEditorWidgetAssemblyArea::enableMiniMapArea (bool flag) {
|
||||
|
||||
_enableMiniMapArea = flag;
|
||||
|
||||
setVerticalScrollBarPolicy(flag ? Qt::ScrollBarAlwaysOff : Qt::ScrollBarAsNeeded);
|
||||
|
||||
invalidateMiniMapCache();
|
||||
updateMarginAreasWidth(0);
|
||||
}
|
||||
|
||||
@@ -135,6 +135,8 @@ void SeerEditorWidgetSourceArea::enableMiniMapArea (bool flag) {
|
||||
|
||||
_enableMiniMapArea = flag;
|
||||
|
||||
setVerticalScrollBarPolicy(flag ? Qt::ScrollBarAlwaysOff : Qt::ScrollBarAsNeeded);
|
||||
|
||||
invalidateMiniMapCache();
|
||||
updateMarginAreasWidth(0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user