mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
Merge pull request #1447 from ultimatemember/fix/modal_photo_responsive
Fix modal responsive
This commit is contained in:
@@ -593,7 +593,11 @@ function um_modal_responsive() {
|
||||
if ( w <= 500 ) {
|
||||
modal.animate({ 'bottom' : 0 }, 300);
|
||||
} else {
|
||||
modal.animate({ 'bottom' : half_gap }, 300);
|
||||
if ( h - parseInt(half_gap) > h ) {
|
||||
modal.animate({ 'bottom' : 0 }, 300);
|
||||
} else {
|
||||
modal.animate({ 'bottom' : half_gap }, 300);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user