move picker at top of the screen on mobile

This commit is contained in:
Joffrey JAFFEUX 2017-07-19 12:42:33 +02:00
parent e5d81597b6
commit 8cf7e614d9
1 changed files with 2 additions and 2 deletions

View File

@ -333,9 +333,9 @@ export default Ember.Component.extend({
$picker.css({ $picker.css({
width: this.site.isMobileDevice ? this.$(window).width() - 10 : 340, width: this.site.isMobileDevice ? this.$(window).width() - 10 : 340,
marginLeft: this.site.isMobileDevice ? -(this.$(window).width() - 10)/2 : -170, marginLeft: this.site.isMobileDevice ? -(this.$(window).width() - 10)/2 : -170,
marginTop: -150, marginTop: this.site.isMobileDevice ? 10 : -150,
left: "50%", left: "50%",
top: "50%" top: this.site.isMobileDevice ? 0 : "50%"
}); });
} else { } else {
$modal.removeClass("fadeIn"); $modal.removeClass("fadeIn");