Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18317] iOS: Dialog arrow starts in center instead of at edge of view

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2015-01-06T18:23:08.000+0000
Affected Version/sn/a
Fix Version/sRelease 3.5.0, Release 4.0.0
ComponentsiOS
Labels3.5.0, arrow, dialog, popover
ReporterFokke Zandbergen
AssigneeVishal Duggal
Created2015-01-06T13:41:02.000+0000
Updated2015-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

FileDateSize
iOS Simulator Screen Shot 06 Jan 2015 14.37.08.png2015-01-06T13:41:02.000+000069806
iOS Simulator Screen Shot 06 Jan 2015 14.38.25.png2015-01-06T13:41:02.000+000069821

Comments

  1. Vishal Duggal 2015-01-06

    Pull pending master - https://github.com/appcelerator/titanium_mobile/pull/6540 3_5_X - https://github.com/appcelerator/titanium_mobile/pull/6541
  2. Ewan Harris 2015-01-06

    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.

JSON Source