MasterView-Nav view width is bigger than splitPosition at startup #29

Open
bytor99999 opened this Issue Dec 16, 2010 · 3 comments

Comments

Projects
None yet
2 participants
@bytor99999

I set the default splitPosition to 250.00 But the NavController that I add to the masterview is not reflecting that width. It is much bigger, so the Header and TableView in the NavController is too wide and therefore doesn't display completely. It gets cut off at 250.00. But if I rotate, then the Nav view and tableview in the master update to the correct width.

@bytor99999

This comment has been minimized.

Show comment Hide comment
@bytor99999

bytor99999 Dec 16, 2010

Odd thing is I can't see anything in your code that might even remotely cause this problem. Maybe I can make sure the XIB has the width correctly for the view controller.

Odd thing is I can't see anything in your code that might even remotely cause this problem. Maybe I can make sure the XIB has the width correctly for the view controller.

@bytor99999

This comment has been minimized.

Show comment Hide comment
@bytor99999

bytor99999 Dec 16, 2010

The XIB for the TableView is set to width of 250, and the NavController is created in code adding the table. So it should be correct at 250, based on wheat I have and your code, I don't see how this might be fixed.

The XIB for the TableView is set to width of 250, and the NavController is created in code adding the table. So it should be correct at 250, based on wheat I have and your code, I don't see how this might be fixed.

@maikg

This comment has been minimized.

Show comment Hide comment
@maikg

maikg Mar 14, 2011

The splitPosition property is constrained to certain limits by default. Implement the following delegate method to override those limits:

- (float)splitViewController:(MGSplitViewController *)svc constrainSplitPosition:(float)proposedPosition splitViewSize:(CGSize)viewSize

You could implement this method to always return the proposedPosition. That way, you have complete control over the split position by setting the splitPosition property.

maikg commented Mar 14, 2011

The splitPosition property is constrained to certain limits by default. Implement the following delegate method to override those limits:

- (float)splitViewController:(MGSplitViewController *)svc constrainSplitPosition:(float)proposedPosition splitViewSize:(CGSize)viewSize

You could implement this method to always return the proposedPosition. That way, you have complete control over the split position by setting the splitPosition property.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment