how to change layout on orientation change for titanium ipad

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-12 05:47:39

问题


I'm trying to make a spec on the ipad for an image gallery that has a 3x3 portrait layout but changes to a 3x2 layout on landscape.

I'm trying to get the landscape or portrait grid on application load and then change also on orientation change but every time I do change my orientation the thumbnails flicker and the grid is all out of wack.

http://pastebin.com/sLppSpS9

I'm thinking 'clear out or reset' the view, is there way to do that?


回答1:


I've done similar with Windows, rather than views - my approach was to .close() then .open() again, suited my needs, might be worth investigating with yours



来源:https://stackoverflow.com/questions/6299244/how-to-change-layout-on-orientation-change-for-titanium-ipad

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!