Changeset 1796

Show
Ignore:
Timestamp:
07/31/07 02:59:21 (1 year ago)
Author:
arj..@yirdis.nl
Message:

Set Element.handles()[SE] when setting width and height.

Files:

Legend:

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

    r1792 r1796  
    317317            width = self.min_width 
    318318        h = self._handles 
    319         h[NE].x = h[NW].x + width 
     319        h[SE].x = h[NW].x + width 
    320320 
    321321 
     
    326326        """ 
    327327        h = self._handles 
    328         return float(h[NE].x) - float(h[NW].x) 
     328        return float(h[SE].x) - float(h[NW].x) 
    329329 
    330330    width = property(_get_width, _set_width) 
     
    347347            height = self.min_height 
    348348        h = self._handles 
    349         h[SW].y = h[NW].y + height 
     349        h[SE].y = h[NW].y + height 
    350350 
    351351    def _get_height(self): 
     
    354354        """ 
    355355        h = self._handles 
    356         return float(h[SW].y) - float(h[NW].y) 
     356        return float(h[SE].y) - float(h[NW].y) 
    357357 
    358358    height = property(_get_height, _set_height)