Project: titanium
Issue TIMOB-18317: iOS: Dialog arrow starts in center instead of at edge of view
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. {code:javascript} 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(); {code}
Story points: 3