mirror of
https://github.com/maximebf/php-debugbar.git
synced 2025-07-25 10:41:55 +02:00
Revert "Tweak percentage for sticky (#700)"
This reverts commit bb21b0dfe0
.
This commit is contained in:
@@ -961,11 +961,11 @@ if (typeof(PhpDebugBar) == 'undefined') {
|
|||||||
var screenWidth = $(window).width();
|
var screenWidth = $(window).width();
|
||||||
|
|
||||||
var positionPercentage = (finalPosX / screenWidth) * 100; // Store as percentage
|
var positionPercentage = (finalPosX / screenWidth) * 100; // Store as percentage
|
||||||
|
|
||||||
if (positionPercentage < 20) {
|
if (positionPercentage < 10) {
|
||||||
self.restorePosition = 'bottomLeft';
|
self.restorePosition = 'bottomLeft';
|
||||||
self.restoreOffset = finalPosX;
|
self.restoreOffset = finalPosX;
|
||||||
} else if (positionPercentage > 80) {
|
} else if (positionPercentage > 90) {
|
||||||
self.restorePosition = 'bottomRight';
|
self.restorePosition = 'bottomRight';
|
||||||
self.restoreOffset = screenWidth - finalPosX;
|
self.restoreOffset = screenWidth - finalPosX;
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user