Fix bug in graphic viewer height when drag'n dropping variable in parallel mode
authorLaurent Bessard
Mon, 17 Jun 2013 23:40:41 +0200
changeset 1265 242512c56ea1
parent 1264 27c8578670c8
child 1266 4282f62c1cf0
Fix bug in graphic viewer height when drag'n dropping variable in parallel mode
PLCControler.py
controls/DebugVariablePanel/DebugVariableGraphicPanel.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)
--- 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()