#12488 when px lower 0 default 100

This commit is contained in:
Jonathan 2024-02-05 16:05:16 +01:00
parent 21fe027a62
commit 80c0f48774
1 changed files with 2 additions and 0 deletions

View File

@ -440,9 +440,11 @@ function checkPositionButtons(positionButtonsBefore) {
var positionFinal;
if (positionButtonsBefore > buttonsNow) {
positionFinal = dialogPosition + (positionButtonsBefore - buttonsNow);
positionFinal = positionFinal < 0 ? "100" : positionFinal;
$(".dialog_tips").css("top", positionFinal);
} else if (positionButtonsBefore < buttonsNow) {
positionFinal = dialogPosition - (buttonsNow - positionButtonsBefore);
positionFinal = positionFinal < 0 ? "100" : positionFinal;
$(".dialog_tips").css("top", positionFinal);
}
}