mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
#12488 when px lower 0 default 100
This commit is contained in:
parent
21fe027a62
commit
80c0f48774
@ -440,9 +440,11 @@ function checkPositionButtons(positionButtonsBefore) {
|
|||||||
var positionFinal;
|
var positionFinal;
|
||||||
if (positionButtonsBefore > buttonsNow) {
|
if (positionButtonsBefore > buttonsNow) {
|
||||||
positionFinal = dialogPosition + (positionButtonsBefore - buttonsNow);
|
positionFinal = dialogPosition + (positionButtonsBefore - buttonsNow);
|
||||||
|
positionFinal = positionFinal < 0 ? "100" : positionFinal;
|
||||||
$(".dialog_tips").css("top", positionFinal);
|
$(".dialog_tips").css("top", positionFinal);
|
||||||
} else if (positionButtonsBefore < buttonsNow) {
|
} else if (positionButtonsBefore < buttonsNow) {
|
||||||
positionFinal = dialogPosition - (buttonsNow - positionButtonsBefore);
|
positionFinal = dialogPosition - (buttonsNow - positionButtonsBefore);
|
||||||
|
positionFinal = positionFinal < 0 ? "100" : positionFinal;
|
||||||
$(".dialog_tips").css("top", positionFinal);
|
$(".dialog_tips").css("top", positionFinal);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user