[TIMOB-17267] Popover: arrowDirection property/parameter is ignored
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | None |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2014-07-02T22:46:10.000+0000 |
Affected Version/s | Release 3.3.0 |
Fix Version/s | n/a |
Components | iOS |
Labels | n/a |
Reporter | Benjamin Hatfield |
Assignee | Ingo Muschenetz |
Created | 2014-07-02T22:40:30.000+0000 |
Updated | 2014-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}
Test case was wrong.