When i started to use SDK 3.3.0 for my alloy app strange thing started to happen. I see that if my view has
layout="vertical"when window is opened, at first all elements appears as their container is with composite(default) layout and after a second, elements appears in correct order.
Everyone can see it with this simple example: index.xml:
<Alloy> <Window width="Ti.UI.FILL" height="Ti.UI.FILL" backgroundColor="white" layout="vertical"> <View width="Ti.UI.FILL" height="Ti.UI.SIZE" layout="vertical"> <Label class="lbl" text="this is label" /> <Label class="lbl" text="this is label" /> <Label class="lbl" text="this is label" /> <Label class="lbl" text="this is label" /> <Label class="lbl" text="this is label" /> <Label class="lbl" text="this is label" /> <Label class="lbl" text="this is label" /> <Label class="lbl" text="this is label" /> <Label class="lbl" text="this is label" /> <Label class="lbl" text="this is label" /> <Label class="lbl" text="this is label" /> <Label class="lbl" text="this is label" /> <Label class="lbl" text="this is label" /> <Label class="lbl" text="this is label" /> <Label class="lbl" text="this is label" /> <Label class="lbl" text="this is label" /> <Label class="lbl" text="this is label" /> <Label class="lbl" text="this is label" /> <Label class="lbl" text="this is label" /> <Label class="lbl" text="this is label" /> <Label class="lbl" text="this is label" /> <Label class="lbl" text="this is label" /> <Label class="lbl" text="this is label" /> <Label class="lbl" text="this is label" /> </View> </Window> </Alloy>and index.tss:
".lbl": { color: "black" }You will see at first only one label - in fact all labels are there but one under another, like if they were in container without "layout" property and after a second they will appear in correct vertical order
Tested with iPod 5(iOS 7.1.2) and iPad 3 (iOS 7.1.2)
Any ideas how to fix this? Problem DO NOT exist on android with the same Ti SDK 3.3.0 and on iOS with previous SDK like 3.2.2
This question is duplicate of this one: http://developer.appcelerator.com/question/177462/ios-app-window-rendering-changes-after-sdk-330, but with more appropriate titile. I locked previous.