Skip to content

Commit

Permalink
iPad - combobox open/close issue orthlieb#4
Browse files Browse the repository at this point in the history
  • Loading branch information
speedyankur committed Jun 17, 2014
1 parent a1a2c2a commit 2cc880b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion app/widgets/com.orthlieb.combobox/controllers/pickerview.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,12 @@ function PickerButtonClick(event) {
$.popover.hide({ animated:true });
}
}

function hidePopOver(){
$.trigger('done', {
source: $,
type: 'done'
});
}
exports.open = function (choices, id) {
if (!Alloy.isTablet) {
$.parentView.add($.pickerview);
Expand Down
2 changes: 1 addition & 1 deletion app/widgets/com.orthlieb.combobox/views/pickerview.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Alloy>
<Popover id='popover' ns="Ti.UI.iPad" platform="ios" formFactor="tablet">
<Popover id='popover' ns="Ti.UI.iPad" platform="ios" formFactor="tablet" onHide="hidePopOver">
<Button id="cancel" onClick="PickerButtonClick">Cancel</Button>
<Button id="done" onClick="PickerButtonClick">Done</Button>
<Picker id="picker"/>
Expand Down

0 comments on commit 2cc880b

Please sign in to comment.