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

Android: TabGroup - "Toggle orientationModes" doesn't work from landscape

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Cannot Reproduce
    • Affects Version/s: Release 3.0.0
    • Fix Version/s: None
    • Component/s: Android
    • Environment:

      Tested on:
      OS: Mac OS X Lion 10.7.4
      Titanium Studio, build: 3.0.0.201210090117
      Titanium SDK, build: 3.0.0.v20121010130117
      Device: Samsung Galaxy III (4.0.4)

      Description

      Description:
      The are two issues in this code, that were noticed in 3.0.0 while testing TabGroup. First one - the background color suppose to be "red", but it is "black". And second one - "Toggle orientationModes" does not work from landscape mode, but works fine from portrait.

      Steps:
      1. Run the following code in landscape:

                      var modes = [Ti.UI.LANDSCAPE_LEFT, Ti.UI.LANDSCAPE_RIGHT];
      		var modesEnabled = true;
      		 
      		var tabGroup = Ti.UI.createTabGroup({
      		  orientationModes: modes,
      		  backgroundColor : 'red'
      		});
      		 
      		var tabWindow = Ti.UI.createWindow();
      		tabGroup.addTab(Ti.UI.createTab({window: tabWindow, title: 'Lonely tab'}));
      		 
      		var toggleModesButton = Ti.UI.createButton({
      		  title: 'Toggle orientationModes'
      		});
      		toggleModesButton.addEventListener('click', function() {
      		  tabGroup.orientationModes = modesEnabled ? [ ] : modes;
      		  modesEnabled = !modesEnabled;
      		});
      		tabWindow.add(toggleModesButton);
      		tabGroup.open();
      

      2. Click "Toggle orientationModes" button

      Expected:
      Orientation should be changed

      Actual:
      Orientation is not changing

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                joshroesslein Josh Roesslein
                Reporter:
                tsmolich Tamila Smolich
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code