Changeset 1659

Show
Ignore:
Timestamp:
07/17/07 13:03:33 (1 year ago)
Author:
wrobe..@pld-linux.org
Message:

- item is fully updated after adding to canvas, its constraints should be

resolved then

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • gaphas/branches/hw/gaphas/item.py

    r1657 r1659  
    288288        self.height = height 
    289289 
    290         # immediately solve the constraints, ensuring the box is drawn okay 
    291         solve_for = (h_ne.y, h_sw.y, h_sw.x, h_ne.x) 
    292         for c, v in zip(self._constraints, solve_for): 
    293             c.solve_for(v) 
    294  
    295290 
    296291    def _set_width(self, width): 
     
    308303            width = self.min_width 
    309304        h = self._handles 
    310         h[SE].x = h[NW].x + width 
     305        h[NE].x = h[NW].x + width 
     306 
    311307 
    312308    def _get_width(self): 
     
    316312        """ 
    317313        h = self._handles 
    318         return float(h[SE].x) - float(h[NW].x) 
     314        return float(h[NE].x) - float(h[NW].x) 
    319315 
    320316    width = property(_get_width, _set_width) 
     
    337333            height = self.min_height 
    338334        h = self._handles 
    339         h[SE].y = h[NW].y + height 
     335        h[SW].y = h[NW].y + height 
    340336 
    341337    def _get_height(self):