Removed hack no longer needed

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8845 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 2001-01-28 03:12:23 +00:00
parent 80fce0b75a
commit e212ad5013

View file

@ -2797,17 +2797,20 @@ static float scrollerWidth; // == [NSScroller scrollerWidth]
NSScrollView *sc;
id matrix;
NSSize cs, ms;
NSRect mr;
if (column >= (int)[_browserColumns count])
return;
{
return;
}
#if defined NSBTRACE__adjustMatrixOfColumn || defined NSBTRACE_all
fprintf(stderr, "NSBrowser - (void)_adjustMatrixOfColumn: %d\n", column);
#endif
if (!(bc = [_browserColumns objectAtIndex: column]))
return;
{
return;
}
sc = [bc columnScrollView];
matrix = [bc columnMatrix];
@ -2818,16 +2821,7 @@ static float scrollerWidth; // == [NSScroller scrollerWidth]
ms = [matrix cellSize];
ms.width = cs.width;
[matrix setCellSize: ms];
mr = [matrix frame];
// this will automatically move the matrix on top if it's not
// yet the sc's document view, otherwise it will not move it
[sc setDocumentView: matrix];
// the clipview's coordinate system is flipped - we need the
// matrix to appear on top - adjust for it
mr.origin.y = cs.height;
[matrix setFrame: mr];
}
}