summaryrefslogtreecommitdiff
path: root/DockWidgets/DockWidgetCompressorExpander.py
diff options
context:
space:
mode:
authorbrenda-br2023-01-29 11:45:16 +0530
committerbrenda-br2023-01-29 11:45:16 +0530
commit4a4f5e4248daeb6ad93f1101526bf53c1c24c8f6 (patch)
treeba5c01091befacefde5e2028931aa6ed9596acd5 /DockWidgets/DockWidgetCompressorExpander.py
parent613060d6259ded571e137556c92ebdbac8950a54 (diff)
downloadChemical-Simulator-GUI-4a4f5e4248daeb6ad93f1101526bf53c1c24c8f6.tar.gz
Chemical-Simulator-GUI-4a4f5e4248daeb6ad93f1101526bf53c1c24c8f6.tar.bz2
Chemical-Simulator-GUI-4a4f5e4248daeb6ad93f1101526bf53c1c24c8f6.zip
Fix #32 Simulation window not shifting after submitting dock widget(More Fixes)
Diffstat (limited to 'DockWidgets/DockWidgetCompressorExpander.py')
-rw-r--r--DockWidgets/DockWidgetCompressorExpander.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/DockWidgets/DockWidgetCompressorExpander.py b/DockWidgets/DockWidgetCompressorExpander.py
index 47f463d..e8e2b31 100644
--- a/DockWidgets/DockWidgetCompressorExpander.py
+++ b/DockWidgets/DockWidgetCompressorExpander.py
@@ -107,7 +107,9 @@ class DockWidgetCompressorExpander(QDockWidget,ui_dialog):
i.update_tooltip()
except:
pass
-
+ if(self.isVisible()):
+ currentVal = self.parent().container.graphics.graphicsView.horizontalScrollBar().value()
+ self.parent().container.graphics.graphicsView.horizontalScrollBar().setValue(currentVal-189)
self.hide()
except Exception as e: