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

iOS: Regression in behaviour with custom views on {right,left} NavButton for iOS

    Details

      Description

      Changing the hierarchy (or doing something that has this as a collateral effect) make the view set as rightNavButton centered in the navBar.

      Just launch the provided code both as 3.0 and 3.1. "Clicking" on the button on 3.0 will work correctly, on 3.1 will expose the issue.

      app.js

      Titanium.UI.setBackgroundColor('#000');
       
      var nav = Ti.UI.createView({
      	width: Ti.UI.SIZE,
      	layout: 'horizontal'
      });
       
      var btn = Ti.UI.createButton({
      	width: 40,
      	left: 2,
      	right: 2,
      	image: 'KS_nav_views.png'
      });
       
      var toggle = true;
       
      btn.addEventListener('click', function () {
      	toggle = !toggle;
      	btn.image = toggle ? 'KS_nav_views.png' : 'KS_nav_ui.png';
      });
       
      nav.add(btn);
       
      var window = Ti.UI.createWindow({
      	title: 'Example',
      	rightNavButton: nav,
      	navBarHidden: false,
      	backgroundColor: 'white',
      	modal: true
      });
       
      window.open();
      

        Attachments

          Activity

            People

            • Assignee:
              vduggal Vishal Duggal (Inactive)
              Reporter:
              yuchi Pier Paolo Ramon
              Reviewer:
              Max Stepanov
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration