Skip to content

Commit ee818ef

Browse files
authored
Update jQuery.leanModal2.js
1 parent e48131a commit ee818ef

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

jQuery.leanModal2.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//// jQuery.leanModal2.js v2.4
1+
//// jQuery.leanModal2.js v2.5
22
// MIT Licensed by eustasy https://eustasy.org
33
// Based on leanModal v1.1 by Ray Stone - http://finelysliced.com.au
44

@@ -103,8 +103,10 @@
103103
if ( options.modalCenter ) {
104104
$(modal_id).css({
105105
'display': 'block',
106-
'left': 50 + '%',
107-
'margin-left': - ( modal_width / 2 ) + 'px',
106+
//'left': 50 + '%',
107+
//'margin-left': - ( modal_width / 2 ) + 'px',
108+
'margin-left': '50%',
109+
'transform': 'translateX(-50%)',
108110
'opacity': 0,
109111
'position': 'fixed',
110112
'top': options.top,

0 commit comments

Comments
 (0)