Diff for /chimera/BookmarksToolbar.mm between versions 1.8 and 1.9

version 1.8, 2002/04/18 00:27:51 version 1.9, 2002/04/18 15:42:03
Line 113 Line 113
 -(void)reflowButtonsStartingAtIndex: (int)aIndex  -(void)reflowButtonsStartingAtIndex: (int)aIndex
 {  {
   int count = [mButtons count];    int count = [mButtons count];
  int prevX = 2;  float prevX = 2.0;
   if (aIndex > 0) {    if (aIndex > 0) {
     BookmarksButton* prevButton = [mButtons objectAtIndex: (aIndex-1)];      BookmarksButton* prevButton = [mButtons objectAtIndex: (aIndex-1)];
     prevX += [prevButton frame].origin.x + [prevButton frame].size.width;      prevX += [prevButton frame].origin.x + [prevButton frame].size.width;
Line 121 Line 121
   for (int i = aIndex; i < count; i++) {    for (int i = aIndex; i < count; i++) {
     BookmarksButton* button = [mButtons objectAtIndex: i];      BookmarksButton* button = [mButtons objectAtIndex: i];
     [button sizeToFit];      [button sizeToFit];
    int width = [button frame].size.width;    float width = [button frame].size.width;
    int height = [button frame].size.height;    float height = [button frame].size.height;
     if (width > 150)      if (width > 150)
       width = 150;        width = 150;
     if (height < 16)      if (height < 16)

Removed from v.1.8  
changed lines
  Added in v.1.9


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>