Set horizontal scroller frame only if we have one

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14354 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 2002-08-27 15:49:06 +00:00
parent bdd9747e9b
commit 8a2511700f
2 changed files with 11 additions and 6 deletions

View file

@ -1769,17 +1769,17 @@ static float scrollerWidth; // == [NSScroller scrollerWidth]
_scrollerRect.size.height = scrollerWidth;
_columnSize.height -= scrollerWidth + (2 * bs.height) + NSBR_VOFFSET;
if (!NSEqualRects(_scrollerRect, [_horizontalScroller frame]))
{
[_horizontalScroller setFrame: _scrollerRect];
}
}
else
{
_scrollerRect = NSZeroRect;
}
if (!NSEqualRects(_scrollerRect, [_horizontalScroller frame]))
{
[_horizontalScroller setFrame: _scrollerRect];
}
num = _lastVisibleColumn - _firstVisibleColumn + 1;
if (_minColumnWidth > 0)