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

@ -1,10 +1,15 @@
2002-08-27 Adam Fedor <fedor@gnu.org>
* Source/NSBrowser.m (-tile): Set horizontal scroller frame
only if we have one.
2002-08-26 Adam Fedor <fedor@gnu.org>
* Model/GMAppKit.m (-initWithModelUnarchiver:): Don't add ourselves
to the superview if we are the contentView of an NSBox.
* Tools/example.m ([ExampleServices -openURL:userData:error:]):
Get browser from defualts. Use mozilla if non. (Modified patch from
Get browser from defualts. Use mozilla if none. (Modified patch from
Stefan Urbanek).
2002-08-24 Adam Fedor <fedor@gnu.org>

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)