mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-06 17:12:50 +00:00
Fix frame of CPScrollView is calculated incorrectly.
This commit is contained in:
1 parent
22b882648b
commit
ee1c5478b1
1 file changed
+2
-2
@@ -172,10 +172,10 @@ var CPScrollerStyleGlobal = CPScrollerStyleOverlay,
|
||||
scrollerWidth = [CPScroller scrollerWidth];
|
||||
|
||||
if (hFlag)
|
||||
frameSize.height -= scrollerWidth;
|
||||
frameSize.height += scrollerWidth;
|
||||
|
||||
if (vFlag)
|
||||
frameSize.width -= scrollerWidth;
|
||||
frameSize.width += scrollerWidth;
|
||||
|
||||
return frameSize;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user