CSLinearLayoutView icon indicating copy to clipboard operation
CSLinearLayoutView copied to clipboard

An 'on rotation' question ~ not an issue

Open wm-j-ray opened this issue 12 years ago • 2 comments

I'm a using CSLinearLayoutView in vertical mode with device in portrait orientation. When I rotate the device to landscape I would like the view(s)/items to expand horizontally, i.e. keeping the same left and right margins they had in portrait.

I've fooled around with the linearLayoutView.autoresizingMask but had no luck. (I'm not even sure I'm looking in the right place)

Can you give me a pointer as to where to start?

Thank you so much for your upload. Very cleverly done.

wm-j-ray avatar Apr 05 '13 01:04 wm-j-ray

You're right, this is a bug. The autoresizingMask on the linear layout view itself works as expected, but the layout items' views should respect their own individual autoresizing masks when the fillMode is set to CSLinearLayoutItemFillModeNormal. I'll investigate...

scalessec avatar Apr 05 '13 15:04 scalessec

Anything? Tell me where to start and I'll take a whack at it. Please let me know if you have any any thoughts as to where I could start to fix this.

Thanx in advance.

wm-j-ray avatar May 05 '13 01:05 wm-j-ray