graphics/FBD_Objects.py
changeset 721 f3dffc1a5ffe
parent 717 86a2d1786684
equal deleted inserted replaced
720:2a9d4eafaddd 721:f3dffc1a5ffe
   699                 posx = max(0, self.Pos.x + width - min_width)
   699                 posx = max(0, self.Pos.x + width - min_width)
   700                 if scaling is not None:
   700                 if scaling is not None:
   701                     posx = round_scaling(posx, scaling[0])
   701                     posx = round_scaling(posx, scaling[0])
   702                 self.Pos.x = posx
   702                 self.Pos.x = posx
   703             elif self.Type == OUTPUT:
   703             elif self.Type == OUTPUT:
   704                 posy = max(0, self.Pos.x + (width - min_width) / 2)
   704                 posx = max(0, self.Pos.x + (width - min_width) / 2)
   705                 if scaling is not None:
   705                 if scaling is not None:
   706                     posx = round_scaling(posx, scaling[0])
   706                     posx = round_scaling(posx, scaling[0])
   707                 self.Pos.x = posx
   707                 self.Pos.x = posx
   708             width = min_width
   708             width = min_width
   709             if scaling is not None:
   709             if scaling is not None: