mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 05:00:38 +00:00
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:
parent
bdd9747e9b
commit
8a2511700f
2 changed files with 11 additions and 6 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue