We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e48131a commit ee818efCopy full SHA for ee818ef
jQuery.leanModal2.js
@@ -1,4 +1,4 @@
1
-//// jQuery.leanModal2.js v2.4
+//// jQuery.leanModal2.js v2.5
2
// MIT Licensed by eustasy https://eustasy.org
3
// Based on leanModal v1.1 by Ray Stone - http://finelysliced.com.au
4
@@ -103,8 +103,10 @@
103
if ( options.modalCenter ) {
104
$(modal_id).css({
105
'display': 'block',
106
- 'left': 50 + '%',
107
- 'margin-left': - ( modal_width / 2 ) + 'px',
+ //'left': 50 + '%',
+ //'margin-left': - ( modal_width / 2 ) + 'px',
108
+ 'margin-left': '50%',
109
+ 'transform': 'translateX(-50%)',
110
'opacity': 0,
111
'position': 'fixed',
112
'top': options.top,
0 commit comments