Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-25560

iOS: extendSafeArea property not behave properly if tabBarHidden = true or navBarHidden = true.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 6.3.0
    • Fix Version/s: Release 7.0.1
    • Component/s: iOS
    • Labels:

      Description

      As Low Bird and Ben Bahrenburg 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();
      

        Attachments

          Activity

            People

            • Assignee:
              vijaysingh Vijay Singh
              Reporter:
              vijaysingh Vijay Singh
              Reviewer:
              Hans Knöchel
              Tester:
              Abir Mukherjee
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-6006
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code