Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25559] iOS: extendSafeArea property not behave properly if tabBarHidden = true or navBarHidden = true.

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionDuplicate
Resolution Date2017-11-27T11:16:41.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterVijay Singh
AssigneeUnknown
Created2017-11-27T04:49:15.000+0000
Updated2018-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();

Comments

  1. Eric Merriman 2018-08-06

    Closing as a duplicate. If this is in error, please reopen.

JSON Source