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

iPad: barImage does not change when orientation changes

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Low
    • Resolution: Won't Fix
    • Affects Version/s: Release 1.7.2, Release 1.8.0
    • Fix Version/s: None
    • Component/s: iOS
    • Environment:

      Mac OSX Lion
      TiMob: 1.8.0.v20110819142548 and
      TiMob: 1.7.2
      TiStud: 1.0.4.201108101535

      Devices tested On:
      iPad Simulator
      iPad 2 version 4.3.5

      Description

      Steps to recreate:

      Drop the following in to an app.js, and click the button. A modal window will pop up, then close itself after one second. Watch the nav bar, which will have KS_nav_ui.png set as its barImage (make sure this image is available).

      Repeat this a couple of times and then change the orientation of the iPad.

      Actual Result:
      barImage still would have the same position and size as it was in previos orientation.

      Expected Result:
      barImage should change its position and size according to the new orientation.

      Note: this would happen only for the first time. After the first time, the image changes according to the new orientation.

      var windowProperties = {
          backgroundColor: '#fff',
          barImage: 'KS_nav_ui.png'
      };
      var tabGroup = Ti.UI.createTabGroup();
      var win = Ti.UI.createWindow(windowProperties);
      var openModal = Ti.UI.createButton({
          title: 'Watch the barImage, and click me',
          width: 250, height: 40, top: 20
      });
      openModal.addEventListener('click', function() {
          var modal = Ti.UI.createWindow(windowProperties);
          modal.open({ modal: true });
          setTimeout(function() {
              modal.close();
          }, 1000);
      });
      win.add(openModal);
      tabGroup.addTab(Ti.UI.createTab({
          icon: 'KS_nav_views.png',
          window: win
      }));
      tabGroup.open();
      

        Attachments

          Activity

            People

            • Assignee:
              ingo Ingo Muschenetz
              Reporter:
              vsingh Vikramjeet Singh
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration