ember-ted-modals
Advanced tools
Comparing version 0.3.1 to 0.4.0
@@ -12,9 +12,12 @@ import ModalDialog from 'ember-modal-dialog/components/modal-dialog'; | ||
translucentOverlay: true, | ||
screen: Ember.inject.service(), | ||
setup: Ember.on('didInsertElement', function() { | ||
this.set('openedAt', Ember.$(window).scrollTop()); | ||
// This order works best for mobile rendering perf. | ||
// Why? ¯\_(ツ)_/¯ CSS | ||
window.scrollTo(0, 0); | ||
if (this.get('screen.width') < 420) { | ||
// This order works best for mobile rendering perf. | ||
// Why? ¯\_(ツ)_/¯ CSS | ||
this.set('openedAt', Ember.$(window).scrollTop()); | ||
window.scrollTo(0, 0); | ||
} | ||
Ember.$('body').addClass('modal-showing'); | ||
@@ -21,0 +24,0 @@ |
{ | ||
"name": "ember-ted-modals", | ||
"version": "0.3.1", | ||
"version": "0.4.0", | ||
"description": "The default blueprint for ember-cli addons.", | ||
@@ -5,0 +5,0 @@ "directories": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9935
131