#106 ✓resolved
Daniel Kennett

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

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.

New-ticket Create new ticket

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.

Shared Ticket Bins

Attachments

Referenced by

Pages