1
0
mirror of https://github.com/maximebf/php-debugbar.git synced 2025-07-24 10:12:54 +02:00

Revert "Tweak percentage for sticky (#700)"

This reverts commit bb21b0dfe0.
This commit is contained in:
Barry vd. Heuvel
2024-12-27 21:10:08 +01:00
parent bb21b0dfe0
commit 2ae6943c8c

View File

@@ -961,11 +961,11 @@ if (typeof(PhpDebugBar) == 'undefined') {
var screenWidth = $(window).width();
var positionPercentage = (finalPosX / screenWidth) * 100; // Store as percentage
if (positionPercentage < 20) {
if (positionPercentage < 10) {
self.restorePosition = 'bottomLeft';
self.restoreOffset = finalPosX;
} else if (positionPercentage > 80) {
} else if (positionPercentage > 90) {
self.restorePosition = 'bottomRight';
self.restoreOffset = screenWidth - finalPosX;
} else {