diff options
author | brenda-br | 2023-01-19 04:12:17 +0530 |
---|---|---|
committer | brenda-br | 2023-01-19 04:12:17 +0530 |
commit | 7dbb6b0e06281f37eff2179202a2ebdaf0fc2905 (patch) | |
tree | 2746168a79914286cf6482bc7f9c0862e4d5cde8 /DockWidgets/DockWidgetDistillationColumn.py | |
parent | 4b7069b35a9a20ec5a0fb6dfeda7e116768045f0 (diff) | |
download | Chemical-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/DockWidgetDistillationColumn.py')
-rw-r--r-- | DockWidgets/DockWidgetDistillationColumn.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/DockWidgets/DockWidgetDistillationColumn.py b/DockWidgets/DockWidgetDistillationColumn.py index 34b8590..716cb1a 100644 --- a/DockWidgets/DockWidgetDistillationColumn.py +++ b/DockWidgets/DockWidgetDistillationColumn.py @@ -357,3 +357,8 @@ class DockWidgetDistillationColumn(QDockWidget, ui_dialog): t.resizeColumnsToContents() 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 |