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; NSScrollView *sc;
id matrix; id matrix;
NSSize cs, ms; NSSize cs, ms;
NSRect mr;
if (column >= (int)[_browserColumns count]) if (column >= (int)[_browserColumns count])
{
return; return;
}
#if defined NSBTRACE__adjustMatrixOfColumn || defined NSBTRACE_all #if defined NSBTRACE__adjustMatrixOfColumn || defined NSBTRACE_all
fprintf(stderr, "NSBrowser - (void)_adjustMatrixOfColumn: %d\n", column); fprintf(stderr, "NSBrowser - (void)_adjustMatrixOfColumn: %d\n", column);
#endif #endif
if (!(bc = [_browserColumns objectAtIndex: column])) if (!(bc = [_browserColumns objectAtIndex: column]))
{
return; return;
}
sc = [bc columnScrollView]; sc = [bc columnScrollView];
matrix = [bc columnMatrix]; matrix = [bc columnMatrix];
@ -2818,16 +2821,7 @@ static float scrollerWidth; // == [NSScroller scrollerWidth]
ms = [matrix cellSize]; ms = [matrix cellSize];
ms.width = cs.width; ms.width = cs.width;
[matrix setCellSize: ms]; [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]; [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];
} }
} }