CPScrollView resizes on first scroll
Reported by Bob Warwick | September 12th, 2008 @ 10:58 PM | in 0.5.2
When I create a basic scroll view with code like this:
var scrollView = [[CPScrollView alloc] initWithFrame:CPRectMake(0, 0, 500, 150)];
var docView = [[CPView alloc] initWithFrame:CPRectMake(0, 0, 500, 300)];
[scrollView setDocumentView:docView];
[scrollView setHasHorizontalScroller:NO];
[[self contentView] addSubview:scrollView];
the CPScrollView adjusts it's height when I start scrolling. The change in height appears to be equal to the size of the horizontal scroller.
If I swap the setDocumentView: and setHasHorizontalScroller: call however, it works as expected without resizing.
var scrollView = [[CPScrollView alloc] initWithFrame:CPRectMake(0, 0, 500, 150)];
var docView = [[CPView alloc] initWithFrame:CPRectMake(0, 0, 500, 300)];
[scrollView setHasHorizontalScroller:NO];
[scrollView setDocumentView:docView];
[[self contentView] addSubview:scrollView];
Comments and changes to this ticket
-
admin (at 280north) October 4th, 2008 @ 01:21 PM
- State changed from new to resolved
(from [ac4faf3a4c587e7b4e2f35a5f6394cb2a101f740]) Fix for scrollers not updating properly.
[#35 state:resolved]
Reviewed by ross. http://github.com/280north/cappu...
-
Francisco Tolmasky October 4th, 2008 @ 01:22 PM
- Assigned user set to Francisco Tolmasky
- State changed from resolved to open
-
Francisco Tolmasky October 4th, 2008 @ 01:22 PM
- State changed from open to resolved
-
Francisco Tolmasky October 4th, 2008 @ 01:23 PM
- Milestone set to 0.5.2
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
The Cappuccino Web Framework, including AppKit, Foundation, and Objective-J.