You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading to SDK 10.0.0.GA, the first Tab in our TabGroup seems to misbehave. It will automatically get a small bar at the top of the Window. This does not happen with SDK 9.3.3.GA and it doesn't seem to be related to navBarHidden or extendSafeArea.
The "top bar" is always visible when first opening the TabGroup, but mystically disappears when switching to a different Tab and back again or opening and closing a new Window.
Classic code to reproduce:
var win1 = Titanium.UI.createWindow({
backgroundColor: 'white',
navBarHidden: true
});
var button = Titanium.UI.createButton({
title: 'Open TabGroup'
});
win1.add(button);
// Create NavigationWindow
var navWin = Titanium.UI.createNavigationWindow({
window: win1
});
// Creat Tab Window 1
var tabWin1 = Ti.UI.createWindow({
backgroundColor: 'blue'
});
// Create Tab Window 2
var tabWin2 = Ti.UI.createWindow({
backgroundColor: 'red'
});
tabWin2.add(Ti.UI.createLabel({text: 'I am a red window.'}));
// Create the Tabs and the TabGroup
var tab1 = Ti.UI.createTab({
window: tabWin1,
title: 'Blue'
}),
tab2 = Ti.UI.createTab({
window: tabWin2,
title: 'Red'
}),
tabGroup = Ti.UI.createTabGroup({
tabs: [tab1, tab2]
});
// Button to close the TabGroup
var button2 = Titanium.UI.createButton({
title: 'Close Blue Window',
color: 'white'
});
button2.addEventListener('click', function(){
navWin.closeWindow(tabGroup);
});
tabWin1.add(button2);
// Open TabGroup
button.addEventListener('click', function(){
// NOTE: without animated: false, the TabGroup doesn't get the safe above area at the Home Indicator
navWin.openWindow(tabGroup, { animated: false });
});
navWin.open();
Note: setting tabBarHidden: true on a Window will hide the TabGroup and the bar at the top, but only on the first Tab after switching to Tab 2 and back.
Another bug(?) when opening the TabGroup from a NavigationWindow, is when using default open parameters animated: true, the
Any idea of what might cause this, or if there is a way to avoid this behaviour?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
After upgrading to SDK
10.0.0.GA
, the first Tab in our TabGroup seems to misbehave. It will automatically get a small bar at the top of the Window. This does not happen with SDK9.3.3.GA
and it doesn't seem to be related tonavBarHidden
orextendSafeArea
.The "top bar" is always visible when first opening the TabGroup, but mystically disappears when switching to a different Tab and back again or opening and closing a new Window.
Classic code to reproduce:
Note: setting
tabBarHidden: true
on a Window will hide the TabGroup and the bar at the top, but only on the first Tab after switching to Tab 2 and back.Another bug(?) when opening the TabGroup from a NavigationWindow, is when using default open parameters
animated: true
, theAny idea of what might cause this, or if there is a way to avoid this behaviour?
Beta Was this translation helpful? Give feedback.
All reactions