mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-25 08:10:59 +00:00
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:
parent
80fce0b75a
commit
e212ad5013
1 changed files with 6 additions and 12 deletions
|
@ -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];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue