# HG changeset patch # User Laurent Bessard # Date 1371505241 -7200 # Node ID 242512c56ea1ef899ca9f1b2afa370dd14328821 # Parent 27c8578670c82897f1bdf77df2fc834fd45b2510 Fix bug in graphic viewer height when drag'n dropping variable in parallel mode diff -r 27c8578670c8 -r 242512c56ea1 PLCControler.py --- a/PLCControler.py Mon Jun 17 10:42:53 2013 +0200 +++ b/PLCControler.py Mon Jun 17 23:40:41 2013 +0200 @@ -710,14 +710,12 @@ def GetInstanceInfos(self, instance_path, debug = False): tagname = self.GetPouInstanceTagName(instance_path) - print instance_path, tagname if tagname is not None: infos = self.GetPouVariables(tagname, debug) infos["type"] = tagname return infos else: pou_path, var_name = instance_path.rsplit(".", 1) - print pou_path, tagname tagname = self.GetPouInstanceTagName(pou_path) if tagname is not None: pou_infos = self.GetPouVariables(tagname, debug) diff -r 27c8578670c8 -r 242512c56ea1 controls/DebugVariablePanel/DebugVariableGraphicPanel.py --- a/controls/DebugVariablePanel/DebugVariableGraphicPanel.py Mon Jun 17 10:42:53 2013 +0200 +++ b/controls/DebugVariablePanel/DebugVariableGraphicPanel.py Mon Jun 17 23:40:41 2013 +0200 @@ -864,6 +864,8 @@ target_panel.SetCanvasHeight(size.width) elif source_size is not None and source_panel != target_panel: target_panel.SetCanvasHeight(size.height + source_size.height) + else: + target_panel.SetCanvasHeight(size.height) target_panel.ResetGraphics() self.ResetVariableNameMask()