diff options
author | pravindalve | 2023-01-19 10:29:08 +0530 |
---|---|---|
committer | GitHub | 2023-01-19 10:29:08 +0530 |
commit | 22e16e822e952664b55a39bbc69dd15e2e55fe74 (patch) | |
tree | 6fb4fc041e513a3d61ab44f78e594c8d10cb5234 /DockWidgets/DockWidgetCompressorExpander.py | |
parent | e65657bc794c50422248d5add590c5c85b1affc5 (diff) | |
parent | 4b65f30c2874f014d533dce9841d13b04b924d9a (diff) | |
download | Chemical-Simulator-GUI-22e16e822e952664b55a39bbc69dd15e2e55fe74.tar.gz Chemical-Simulator-GUI-22e16e822e952664b55a39bbc69dd15e2e55fe74.tar.bz2 Chemical-Simulator-GUI-22e16e822e952664b55a39bbc69dd15e2e55fe74.zip |
Merge pull request #37 from brenda-br/b_version_1
Fix-32,33
Diffstat (limited to 'DockWidgets/DockWidgetCompressorExpander.py')
-rw-r--r-- | DockWidgets/DockWidgetCompressorExpander.py | 7 |
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 |