如何改变钛金属ipad的方向变化布局 [英] how to change layout on orientation change for titanium ipad
问题描述
我正在尝试在ipad上制作一个具有3x3纵向布局但在横向上更改为3x2布局的图库的规范。
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.
我在想'清除或重置'视图,有没有办法做到这一点?
I'm thinking 'clear out or reset' the view, is there way to do that?
推荐答案
我已经完成了与Windows相似的工作,而不是视图 - 我的方法是.close()然后.open()再次,适合我的需要,可能值得与你调查
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
这篇关于如何改变钛金属ipad的方向变化布局的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!