PDA

View Full Version : possible to have a card layout in an overlay?



cabennett85
28 Jul 2010, 4:08 PM
Hello All,

Quick layout question: I'm developing for the iPad. I'm launching an overlay that needs to use a vbox layout in portrait orientation, and switch to an hbox when in landscape. I'm pretty sure I read somewhere that I can't change the layout of the overlay panel on the fly so I thought I might try to use a card layout where card1 is a panel with a vbox layout and card2 is a panel with a hbox layout, so that I can just switch between cards when the orientation changes.

Does anybody know if this should be do-able? My current implementation is getting all messed up when I rotate.

Thanks.

evant
28 Jul 2010, 5:16 PM
Yes, totally doable. The same way you'd do any other card layout, an overlay is just a floating panel!