summaryrefslogtreecommitdiff
path: root/DockWidgets/DockWidgetCompoundSeparator.py
diff options
context:
space:
mode:
Diffstat (limited to 'DockWidgets/DockWidgetCompoundSeparator.py')
-rw-r--r--DockWidgets/DockWidgetCompoundSeparator.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/DockWidgets/DockWidgetCompoundSeparator.py b/DockWidgets/DockWidgetCompoundSeparator.py
index 5a80f84..69b2770 100644
--- a/DockWidgets/DockWidgetCompoundSeparator.py
+++ b/DockWidgets/DockWidgetCompoundSeparator.py
@@ -97,3 +97,7 @@ class DockWidgetCompoundSeparator(QDockWidget,ui_dialog):
except Exception as e:
print(e)
+ 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