summaryrefslogtreecommitdiff
path: root/DockWidgets/DockWidgetFlash.py
diff options
context:
space:
mode:
authorbrenda-br2023-01-19 04:12:17 +0530
committerbrenda-br2023-01-19 04:12:17 +0530
commit7dbb6b0e06281f37eff2179202a2ebdaf0fc2905 (patch)
tree2746168a79914286cf6482bc7f9c0862e4d5cde8 /DockWidgets/DockWidgetFlash.py
parent4b7069b35a9a20ec5a0fb6dfeda7e116768045f0 (diff)
downloadChemical-Simulator-GUI-7dbb6b0e06281f37eff2179202a2ebdaf0fc2905.tar.gz
Chemical-Simulator-GUI-7dbb6b0e06281f37eff2179202a2ebdaf0fc2905.tar.bz2
Chemical-Simulator-GUI-7dbb6b0e06281f37eff2179202a2ebdaf0fc2905.zip
Fix #32 Simulation Window Stopped Shifting after closing Dock Widgets
Diffstat (limited to 'DockWidgets/DockWidgetFlash.py')
-rw-r--r--DockWidgets/DockWidgetFlash.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/DockWidgets/DockWidgetFlash.py b/DockWidgets/DockWidgetFlash.py
index ff8efb5..c288259 100644
--- a/DockWidgets/DockWidgetFlash.py
+++ b/DockWidgets/DockWidgetFlash.py
@@ -68,4 +68,9 @@ class DockWidgetFlash(QDockWidget,ui_dialog):
self.hide()
except Exception as e:
- print(e) \ No newline at end of file
+ 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