@lemonadejs/modal 2.3.5 → 2.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -248,8 +248,8 @@ if (!lemonade && typeof (require) === 'function') {
248
248
 
249
249
  // Initial centralize
250
250
  if (self.center === true) {
251
- self.top = ((window.innerHeight / 2) - (self.el.offsetHeight / 2));
252
- self.left = ((window.innerWidth / 2) - (self.el.offsetWidth / 2));
251
+ self.top = (window.innerHeight - self.el.offsetHeight) / 2;
252
+ self.left = (window.innerWidth - self.el.offsetWidth) / 2;
253
253
  }
254
254
 
255
255
  // Dimensions
package/package.json CHANGED
@@ -17,5 +17,5 @@
17
17
  },
18
18
  "main": "dist/index.js",
19
19
  "types": "dist/index.d.ts",
20
- "version": "2.3.5"
20
+ "version": "2.3.6"
21
21
  }