diff options
author | brenda-br | 2023-01-29 11:45:16 +0530 |
---|---|---|
committer | brenda-br | 2023-01-29 11:45:16 +0530 |
commit | 4a4f5e4248daeb6ad93f1101526bf53c1c24c8f6 (patch) | |
tree | ba5c01091befacefde5e2028931aa6ed9596acd5 /DockWidgets/DockWidgetSplitter.py | |
parent | 613060d6259ded571e137556c92ebdbac8950a54 (diff) | |
download | Chemical-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/DockWidgetSplitter.py')
-rw-r--r-- | DockWidgets/DockWidgetSplitter.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/DockWidgets/DockWidgetSplitter.py b/DockWidgets/DockWidgetSplitter.py index 089b517..24a8ee2 100644 --- a/DockWidgets/DockWidgetSplitter.py +++ b/DockWidgets/DockWidgetSplitter.py @@ -65,6 +65,9 @@ class DockWidgetSplitter(QDockWidget,ui_dialog): self.dict={} self.dict = [int(self.input_dict[0].text()),self.input_dict[1].currentText(), float(self.input_dict[2].text()), float(self.input_dict[3].text())] self.obj.param_setter(self.dict) + 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: print(e) |