mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
* Source/NSBrowser.m: Fix some position calculations from the last
commit git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37175 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
67de37f017
commit
52f8843480
2 changed files with 18 additions and 3 deletions
13
ChangeLog
13
ChangeLog
|
@ -1,3 +1,16 @@
|
|||
2013-09-29 Eric Wasylishen <ewasylishen@gmail.com>
|
||||
|
||||
* Source/NSBrowser.m: Fix some position calculations from the last
|
||||
commit
|
||||
|
||||
2013-09-29 Eric Wasylishen <ewasylishen@gmail.com>
|
||||
|
||||
* Source/NSBrowser.m:
|
||||
* Source/GSThemeDrawing.m:
|
||||
* Headers/Additions/GNUstepGUI/GSTheme.h: Add GSBrowserUseBezels
|
||||
user default. Themes can set it to NO to prevent NSBrowser from
|
||||
drawing any bezels, even if separatesColumns is set to YES.
|
||||
|
||||
2013-09-29 Eric Wasylishen <ewasylishen@gmail.com>
|
||||
|
||||
* Source/NSBrowser.m: Small refactoring to simplify code.
|
||||
|
|
|
@ -1789,7 +1789,7 @@ static BOOL browserUseBezels;
|
|||
else
|
||||
{
|
||||
if (_hasHorizontalScroller)
|
||||
rect.origin.y = (scrollerWidth - 1);
|
||||
rect.origin.y = scrollerWidth;
|
||||
}
|
||||
|
||||
// Padding : _columnSize.width is rounded in "tile" method
|
||||
|
@ -1867,14 +1867,16 @@ static BOOL browserUseBezels;
|
|||
// Horizontal scroller
|
||||
if (_hasHorizontalScroller)
|
||||
{
|
||||
const CGFloat scrollerHightReduction = browserUseBezels ? 1 : 0;
|
||||
|
||||
_scrollerRect.origin.x = bezelBorderSize.width;
|
||||
_scrollerRect.origin.y = bezelBorderSize.height - 1;
|
||||
_scrollerRect.origin.y = bezelBorderSize.height - scrollerHightReduction;
|
||||
_scrollerRect.size.width = (_frame.size.width -
|
||||
(2 * bezelBorderSize.width));
|
||||
_scrollerRect.size.height = scrollerWidth;
|
||||
|
||||
if (_separatesColumns)
|
||||
_columnSize.height -= (scrollerWidth - 1) +
|
||||
_columnSize.height -= (scrollerWidth - scrollerHightReduction) +
|
||||
(2 * bezelBorderSize.height) + browserVerticalPadding;
|
||||
else
|
||||
_columnSize.height -= scrollerWidth + (2 * bezelBorderSize.height);
|
||||
|
|
Loading…
Reference in a new issue