summaryrefslogtreecommitdiff
path: root/DockWidgets/DockWidgetCompressorExpander.py
diff options
context:
space:
mode:
authorpravindalve2023-01-19 10:29:08 +0530
committerGitHub2023-01-19 10:29:08 +0530
commit22e16e822e952664b55a39bbc69dd15e2e55fe74 (patch)
tree6fb4fc041e513a3d61ab44f78e594c8d10cb5234 /DockWidgets/DockWidgetCompressorExpander.py
parente65657bc794c50422248d5add590c5c85b1affc5 (diff)
parent4b65f30c2874f014d533dce9841d13b04b924d9a (diff)
downloadChemical-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.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