summaryrefslogtreecommitdiff
path: root/DockWidgets/DockWidgetCompressorExpander.py
diff options
context:
space:
mode:
Diffstat (limited to 'DockWidgets/DockWidgetCompressorExpander.py')
-rw-r--r--DockWidgets/DockWidgetCompressorExpander.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/DockWidgets/DockWidgetCompressorExpander.py b/DockWidgets/DockWidgetCompressorExpander.py
index 841b850..5309bba 100644
--- a/DockWidgets/DockWidgetCompressorExpander.py
+++ b/DockWidgets/DockWidgetCompressorExpander.py
@@ -142,5 +142,8 @@ class DockWidgetCompressorExpander(QDockWidget,ui_dialog):
except Exception as e:
print(e)
-
- \ No newline at end of file
+
+ def closeEvent(self,event):
+ scrollHVal = self.parent().container.graphics.graphicsView.horizontalScrollBarVal
+ currentVal = self.parent().container.graphics.graphicsView.horizontalScrollBar().value()
+ self.parent().container.graphics.graphicsView.horizontalScrollBar().setValue((scrollHVal+currentVal)/2) \ No newline at end of file