malcommac / DMSplitView

New NSSplitView class with multiple subviews resize behaviors and animated transitions
116 stars 24 forks source link

Sizes of views change on window resize #5

Closed vladubogdan closed 11 years ago

vladubogdan commented 11 years ago

Hey,

I know this is not trivial and you may ignore me if this is to much work, but would be nice to have.

When the window resizes the views changes size also. It is desired that when window resized only the middle view should change size while the left and right view should stay at the same size. Check out XCode to see this behaviour.

brendand commented 11 years ago

Just set splitView.subviewsResizeMode = DMSplitViewResizeModePriorityBased;

Then setup your priorities:

[splitView setPriority:2 ofSubviewAtIndex:0]; [splitView setPriority:0 ofSubviewAtIndex:1]; [splitView setPriority:1 ofSubviewAtIndex:2];

The example shows that.

It works great!

By the way, thank you very much for creating this component. It's awesome!

vladubogdan commented 11 years ago

Hey,

Thanks! That works.

malcommac commented 11 years ago

Thank you brendand :)