[TIMOB-17235] iOS: Window in tabGroup flicker on first open
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | High |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2018-05-19T14:38:33.000+0000 |
| Affected Version/s | Release 3.2.3, Release 3.3.0 |
| Fix Version/s | Release 7.3.0 |
| Components | iOS |
| Labels | n/a |
| Reporter | Wayne Bloore |
| Assignee | Vijay Singh |
| Created | 2014-06-21T08:23:27.000+0000 |
| Updated | 2018-06-25T20:04:02.000+0000 |
Hello Wayne, Which Ipad model did you test this? Best, Mauro
It is a BUG indeed. It`s happened to me as well on iPAD Air iOS 7.1
Hello [~jialhe85@gmail.com], thanks for confirmation! Do you mind to add your versions of Mobile SDK and such? So we can add more data here. Best, Mauro
Hi Mauro, I tested it on iPad Mini Retina 7.1.1.
Hi Mauro Mobile SDK 3.2.3
It really needs to be treated urgently as it had been there since SDK 3.2.2
JFYI, we usually set the priority to None, so the Platform team can adjust it.
Issue reproduces Titanium Command-Line Interface, CLI version 3.3.0, Titanium SDK version 3.3.0.GA iOS SDK: 7.1 iOS iPhone Simulator: 7.1
Not reproducible on latest Ti.SDK 5.0 build and iOS8/9. [~shameerj] [~wayne] Can you check if this still occurs?
Hi Hans Issue is still there, unfortunately. Jut slightly different : using the same app.js on iPhone, the flickering is not black but the window seems to resize quickly before showing. It happens only on first open. Is it a different bug? Ti.SDK 5.1.0.v20150929021233 iOS SDK 9.0 XCode 7.0 Seen on simulator and on device (iPhone 5S on iOS 9). Thanks!
I found something interesting : - If you add a "top" attribute to the labels in the example above, then the flickering disappears. (That's a workaround!)
- And if you just set a "bottom" attribute, then the label will go up and down before stabilizing on first open. The tabgroup seems to interfere with the window height.var label1 = Titanium.UI.createLabel({ color:'#999', text:'I am Window 1', font:{fontSize:20,fontFamily:'Helvetica Neue'}, textAlign:'center', top: 100 });PR - https://github.com/appcelerator/titanium_mobile/pull/10014
Titanium.UI.setBackgroundColor('#000'); // create tab group var tabGroup = Titanium.UI.createTabGroup(); var win1 = Titanium.UI.createWindow({ title:'Tab 1', backgroundColor:'#fff' }); var tab1 = Titanium.UI.createTab({ icon:'KS_nav_views.png', title:'Tab 1', window:win1 }); var label1 = Titanium.UI.createLabel({ color:'#999', text:'I am Window 1', font:{fontSize:20,fontFamily:'Helvetica Neue'}, textAlign:'center', bottom:10 }); win1.add(label1); // // create base UI tab and root window // var win2 = Titanium.UI.createWindow({ title:'Tab 1', backgroundColor:'#fff' }); var tab2 = Titanium.UI.createTab({ icon:'KS_nav_views.png', title:'Tab 2', window:win2 }); var label2 = Titanium.UI.createLabel({ color:'#999', text:'I am Window 2', font:{fontSize:20,fontFamily:'Helvetica Neue'}, textAlign:'center', bottom:10 }); win2.add(label2); var win3 = Titanium.UI.createWindow({ title:'Tab 1', backgroundColor:'#fff' }); var tab3 = Titanium.UI.createTab({ icon:'KS_nav_views.png', title:'Tab 1', window:win3 }); var label3 = Titanium.UI.createLabel({ color:'#999', text:'I am Window 1', font:{fontSize:20,fontFamily:'Helvetica Neue'}, textAlign:'center', width:'auto' }); win3.add(label3); // // create base UI tab and root window // var win4 = Titanium.UI.createWindow({ title:'Tab 1', backgroundColor:'#fff' }); var tab4 = Titanium.UI.createTab({ icon:'KS_nav_views.png', title:'Tab 1', window:win4 }); var label4 = Titanium.UI.createLabel({ color:'#999', text:'I am Window 1', font:{fontSize:20,fontFamily:'Helvetica Neue'}, textAlign:'center', width:'auto' }); win4.add(label4); // // add tabs // tabGroup.addTab(tab1); tabGroup.addTab(tab2); tabGroup.addTab(tab3); tabGroup.addTab(tab4); tabGroup.open();*Closing ticket.* fix can be seen in SDK Version:
7.3.0.v20180618182516FR (Passed) Test Steps:Created an application with the code above
Ran the program
Switched tabs
No longer saw the app flickering (Across devices and simulators)
*Test Environment*APPC Studio: 5.0.0.201712081732 APPC CLI: 7.0.4 iphone 6 11.2 emulator iphone 6s (10.2) ipad 5th gen (11.2) Operating System Name: Mac OS High Sierra Operating System Version: 10.13 Node.js Version: 8.9.1 Xcode 9.2