Changeset 18

Show
Ignore:
Timestamp:
12/04/06 17:58:32 (2 years ago)
Author:
lindquist
Message:

Fixed a clipping bug in FlowLayout?

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/minwin/layout.d

    r11 r18  
    112112                    } 
    113113                    r.LTWH(x1,y,w1,h); 
    114                     if ((r.bottom > bottom || r.top < top) && ch.parentOwnsVisibility) { 
     114                    if ((r.top > bottom || r.bottom < top) && ch.parentOwnsVisibility) { 
    115115                        version(LOG)log.printf("layout setting visible off on %x %d %d\n", 
    116116                                 ch,r.bottom,height); 
     
    137137                    } 
    138138                    r.LTWH(x,y1,w,h1); 
    139                     if ((r.right > right || r.left < left) && ch.parentOwnsVisibility) { 
     139                    if ((r.left > right || r.right < left) && ch.parentOwnsVisibility) { 
    140140                        version(LOG)log.printf("layout setting visible off on %x\n",ch); 
    141141                        ch.visible = false;