mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-20 18:26:23 +00:00
* Source/NSScrollView.m (tile): tweak location and height of vertical
scroller if header or corner view available. * Source/GSThemeDrawing.m: (drawTableCornerView:withClip:): do not draw black rectangle because -drawDarkButton:withClip: draws all necessary elements. * Source/GSThemeDrawing.m (drawScrollViewRect:inView:): further cleanup of method implementation. Removed all tweaks of scroller length - all required calculations must be done in NSScrollView's -tile method. Simplified caluclations of X and Y positions of scroller.
This commit is contained in:
parent
d6ef33d805
commit
7c6a22d174
3 changed files with 32 additions and 19 deletions
|
@ -1213,10 +1213,15 @@ GSOppositeEdge(NSRectEdge edge)
|
|||
|
||||
/** Vertically expand the scroller by 1pt on each end */
|
||||
if (overlapBorders)
|
||||
{
|
||||
{
|
||||
vertScrollerRect.origin.y -= 1;
|
||||
vertScrollerRect.size.height += 2;
|
||||
}
|
||||
else if (_hasHeaderView || _hasCornerView)
|
||||
{
|
||||
vertScrollerRect.origin.y -= 1;
|
||||
vertScrollerRect.size.height += 1;
|
||||
}
|
||||
|
||||
[_vertScroller setFrame: vertScrollerRect];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue