# HG changeset patch # User laurent # Date 1303225831 -7200 # Node ID 7081b52a8a2d70dddabc0a57584000cd0ef1b2cc # Parent 63e141705d19aaf0a4cd9fb5a34e9fd849d93461 Fix bounding box of Variable Block when variable name displaying size is bigger than block size diff -r 63e141705d19 -r 7081b52a8a2d graphics/FBD_Objects.py --- a/graphics/FBD_Objects.py Tue Apr 19 17:09:03 2011 +0200 +++ b/graphics/FBD_Objects.py Tue Apr 19 17:10:31 2011 +0200 @@ -519,6 +519,8 @@ bbx_width = self.Size[0] + 2 * CONNECTOR_SIZE else: bbx_width = self.Size[0] + CONNECTOR_SIZE + bbx_x = min(bbx_x, self.Pos.x + (self.Size[0] - self.NameSize[0]) / 2) + bbx_width = max(bbx_width, self.NameSize[0]) bbx_height = self.Size[1] if self.ExecutionOrder != 0: bbx_x = min(bbx_x, self.Pos.x + self.Size[0] - self.ExecutionOrderSize[0])