CPSplitView indents its subviews by frame.origin
Reported by Daniel Kennett | October 13th, 2008 @ 06:36 AM | in 0.6
When placing a CPSplitView in a window, all subviews added to it gets indented by the value of the SplitView's origin.x, and the first subview gets indented by origin.y.
Here's the code that sets up the splitView. topView and bottomView are CPTextField instances. Attached is a screenshot of what happens.
var splitView = [[CPSplitView alloc] initWithFrame:CGRectMake(250,0, CPRectGetWidth([contentView frame]) - 250, CPRectGetHeight([contentView frame]))];
[splitView setAutoresizingMask:CPViewHeightSizable | CPViewWidthSizable];
[splitView setVertical:NO];
[splitView addSubview:topView];
[splitView addSubview:bottomView];
Comments and changes to this ticket
-
Francisco Tolmasky October 14th, 2008 @ 06:38 AM
Just so I understand correctly, does this mean that as you move the parent split view to the right, so too its inner views move?
-
Daniel Kennett October 14th, 2008 @ 06:41 AM
Yes - the further in the SplitView is moved, the larger the indent.
-
Francisco Tolmasky October 14th, 2008 @ 07:58 PM
Could you upload a full runnable test case, I'm having trouble reproducing this.
-
admin (at 280north) October 16th, 2008 @ 02:40 AM
- State changed from new to resolved
(from [0ac0a84b18feba19ad0b0451831b6329c163f1e0]) Fix for CPSplitView indents its subviews by frame.origin.
[#106 state:resolved]
Reviewed by me. http://github.com/280north/cappu...
-
Francisco Tolmasky October 16th, 2008 @ 02:41 AM
- Assigned user set to Francisco Tolmasky
- State changed from resolved to new
- Milestone set to 0.6
-
Francisco Tolmasky October 16th, 2008 @ 02:41 AM
Excellent, thanks.
Fixed in TOT. Sorry about that, the perils of always putting everything at 0,0.
-
Francisco Tolmasky October 16th, 2008 @ 02:42 AM
- State changed from new to resolved
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.