- fix modal responsive

This commit is contained in:
ashubawork
2024-01-31 15:40:01 +02:00
parent 328de82d60
commit 41fb47ea55
+5 -1
View File
@@ -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);
}
}
}
}