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

iOS: Dialog arrow starts in center instead of at edge of view

    Details

    • Story Points:
      3
    • Sprint:
      2015 Sprint 01 SDK

      Description

      The (screenshots of the) next example taken from the docs shows that since 3.5.0.RC dialog arrows like those of a PopOver start from the centre of the (now required) view passed to the show() method, while before it pointed to the relevant side of the view.

      The old behaviour should be restored or made configurable and documented.

      var win = Ti.UI.createWindow({
        backgroundColor: 'white'
      });
       
      var button = Ti.UI.createButton({
        title: 'Open Popover!',
        backgroundColor: 'red'
      });
      button.addEventListener('click', function(e) {
        popover.show({
          view: button
        });
      });
      win.add(button);
       
      var rightButton = Ti.UI.createButton({
        title: 'Robin'
      });
      rightButton.addEventListener('click', function(e) {
        alert("But green's the color of spring.");
      });
       
      var contentWindow = Ti.UI.createWindow({
        backgroundColor: 'green',
        rightNavButton: rightButton,
        title: 'Kermit',
        width: 250,
        height: 100
      });
      contentWindow.add(Ti.UI.createLabel({
        text: "It's not easy being green."
      }));
       
      var popover = Ti.UI.iPad.createPopover({
        width: 250,
        height: 100,
        contentView: Ti.UI.iOS.createNavigationWindow({
          window: contentWindow
        })
      });
       
      win.open();
      

        Attachments

          Activity

            People

            • Assignee:
              vduggal Vishal Duggal (Inactive)
              Reporter:
              fokkezb Fokke Zandbergen
              Reviewer:
              Jon Alter
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration