[TIMOB-25559] iOS: extendSafeArea property not behave properly if tabBarHidden = true or navBarHidden = true.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2017-11-27T11:16:41.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | n/a |
Reporter | Vijay Singh |
Assignee | Unknown |
Created | 2017-11-27T04:49:15.000+0000 |
Updated | 2018-08-06T17:41:08.000+0000 |
Description
As [~l0wb1rd] and [~ben.bahrenburg@gmail.com] has put their comment in TIMOB-25267 -
If 'extendSafeArea = false' in a NavigationController and navBarHidden: true, safe area at the top is not respected. Only happens with navBarHidden on the window.
Similarly if 'extendSafeArea = false' in a TabGroup and 'tabBarHidden: true', safe area at the bottom is not respected.
Test Case (NavigationBar) -
var win = Titanium.UI.createWindow({
backgroundColor: 'red',
title: 'Red Window',
extendSafeArea:false,
navBarHidden: true,
});
win.add(Ti.UI.createLabel({text: 'Hello from Top', top: 0}));
win.add(Ti.UI.createLabel({text: 'Hello from Bottom', bottom: 0}));
var nav = Titanium.UI.iOS.createNavigationWindow({
window: win
});
nav.open();
Test Case (TabBar) -
var win = Ti.UI.createWindow({
backgroundColor: 'blue',
extendSafeArea:false,
tabBarHidden : true,
});
win.add(Ti.UI.createLabel({text: 'I am at top',top: 0}));
win.add(Ti.UI.createLabel({text: 'I am at bottom',bottom: 0}));
var tab = Ti.UI.createTab({
window: win,
});
var tabGroup = Ti.UI.createTabGroup({
tabs: [tab]
});
tabGroup.open();
Closing as a duplicate. If this is in error, please reopen.