Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17267] Popover: arrowDirection property/parameter is ignored

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionInvalid
Resolution Date2014-07-02T22:46:10.000+0000
Affected Version/sRelease 3.3.0
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterBenjamin Hatfield
AssigneeIngo Muschenetz
Created2014-07-02T22:40:30.000+0000
Updated2014-07-02T22:46:10.000+0000

Description

REPRODUCTION: Run the code below in the iPad simulator. RESULTS: Click on the button to show the popover. The popover displays below the button. The arrowDirection property outputted by the console log displays null. EXPECTED RESULTS: The popover should be displayed to the left or right of the button and the arrowDirection property should not be null. TEST CODE: {noformat} var win = Ti.UI.createWindow({backgroundColor: 'white'}); var contentWindow = Ti.UI.createWindow({ backgroundColor: 'green', title: 'Popover' }); contentWindow.add(Ti.UI.createLabel({text: "I'm a popover!"})); var navWindow = Ti.UI.iOS.createNavigationWindow({window: contentWindow}); var popover = Ti.UI.iPad.createPopover({contentView: contentWindow}); var button = Ti.UI.createButton({title: 'Open Popover!'}); button.addEventListener('click', function(e){ popover.show({ view: button, arrowDirection: Titanium.UI.iPad.POPOVER_ARROW_DIRECTION_LEFT | Titanium.UI.iPad.POPOVER_ARROW_DIRECTION_RIGHT, }); Ti.API.info(popover.arrowDirection); }); win.add(button); win.open(); {noformat}

Comments

  1. Benjamin Hatfield 2014-07-02

    Test case was wrong.

JSON Source