mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-05 00:22:58 +00:00
properly position the vertical scrollbar
The vertical scrollbar would be one pixel of if there was: - no headerview (overlapping the border) - a headerview, but no cornerview
This commit is contained in:
1 parent
36c3c94d3b
commit
4e4e7ae015
1 file changed
+1
-1
@@ -310,7 +310,7 @@
|
||||
|
||||
if (shouldShowVerticalScroller)
|
||||
{
|
||||
var verticalScrollerY = MAX(_CGRectGetMaxY([self _cornerViewFrame]), headerClipViewHeight),
|
||||
var verticalScrollerY = MAX(_CGRectGetMaxY([self _cornerViewFrame]), headerClipViewHeight + 1.0),
|
||||
verticalScrollerHeight = _CGRectGetMaxY(contentFrame) - verticalScrollerY;
|
||||
|
||||
[_verticalScroller setFloatValue:(difference.height <= 0.0) ? 0.0 : scrollPoint.y / difference.height];
|
||||
|
||||
Reference in new issue
Block a user