[TIMOB-18317] iOS: Dialog arrow starts in center instead of at edge of view
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2015-01-06T18:23:08.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 3.5.0, Release 4.0.0 |
Components | iOS |
Labels | 3.5.0, arrow, dialog, popover |
Reporter | Fokke Zandbergen |
Assignee | Vishal Duggal |
Created | 2015-01-06T13:41:02.000+0000 |
Updated | 2015-01-06T19:45:22.000+0000 |
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
File | Date | Size |
---|---|---|
iOS Simulator Screen Shot 06 Jan 2015 14.37.08.png | 2015-01-06T13:41:02.000+0000 | 69806 |
iOS Simulator Screen Shot 06 Jan 2015 14.38.25.png | 2015-01-06T13:41:02.000+0000 | 69821 |
Pull pending master - https://github.com/appcelerator/titanium_mobile/pull/6540 3_5_X - https://github.com/appcelerator/titanium_mobile/pull/6541
Verified fix on: Mac OSX 10.10.1 Appcelerator Studio, build: 3.4.1.201410281743 Titanium SDK build: 3.5.0.v20150106102524 Titanium CLI, build: 3.4.1 Alloy: 1.5.1 Xcode 6.1.1 iPad Mini 3 (8.1), iPad 3 (8.0.2) The dialog arrow now starts at the edge of the view as expected. Closing ticket.