diff options
author | brenda-br | 2023-01-28 00:01:12 +0530 |
---|---|---|
committer | brenda-br | 2023-01-28 00:01:12 +0530 |
commit | e6d847f4a2a3a79284646f44b3d014743630da71 (patch) | |
tree | ee0687de4659f1ce322515782db585ae0e6d2e0a /DockWidgets/DockWidget.py | |
parent | 9a90a5af1f7e57b25675416f7d90b1b62515a5a3 (diff) | |
download | Chemical-Simulator-GUI-e6d847f4a2a3a79284646f44b3d014743630da71.tar.gz Chemical-Simulator-GUI-e6d847f4a2a3a79284646f44b3d014743630da71.tar.bz2 Chemical-Simulator-GUI-e6d847f4a2a3a79284646f44b3d014743630da71.zip |
Fix #32 Simulation window only shifts a little when closing dock widget
Still shifting a bit but should work fine
Diffstat (limited to 'DockWidgets/DockWidget.py')
-rw-r--r-- | DockWidgets/DockWidget.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/DockWidgets/DockWidget.py b/DockWidgets/DockWidget.py index cc222db..68404c7 100644 --- a/DockWidgets/DockWidget.py +++ b/DockWidgets/DockWidget.py @@ -155,4 +155,4 @@ class DockWidget(QDockWidget,ui_dialog): 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 + self.parent().container.graphics.graphicsView.horizontalScrollBar().setValue(currentVal-189)
\ No newline at end of file |