Merge pull request #1669 from slevenbits/cpscrollview-frame

Fix frame of CPScrollView is calculated incorrectly.
This commit is contained in:
Alexander Ljungberg committed 2012-09-04 13:34:08 +01:00
commit ff51263671
1 file changed
+2 -2
+2 -2
View File
@@ -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;
}