From 4a4f5e4248daeb6ad93f1101526bf53c1c24c8f6 Mon Sep 17 00:00:00 2001 From: brenda-br Date: Sun, 29 Jan 2023 11:45:16 +0530 Subject: Fix #32 Simulation window not shifting after submitting dock widget(More Fixes) --- DockWidgets/DockWidgetDistillationColumn.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'DockWidgets/DockWidgetDistillationColumn.py') diff --git a/DockWidgets/DockWidgetDistillationColumn.py b/DockWidgets/DockWidgetDistillationColumn.py index 1c30309..e2e1031 100644 --- a/DockWidgets/DockWidgetDistillationColumn.py +++ b/DockWidgets/DockWidgetDistillationColumn.py @@ -179,6 +179,9 @@ class DockWidgetDistillationColumn(QDockWidget, ui_dialog): print("param ", self.dict) 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: -- cgit