mirror of
https://github.com/maximebf/php-debugbar.git
synced 2025-01-16 21:08:34 +01:00
Tweak percentage for sticky (#700)
This commit is contained in:
parent
f3b0022b54
commit
bb21b0dfe0
@ -962,10 +962,10 @@ if (typeof(PhpDebugBar) == 'undefined') {
|
||||
|
||||
var positionPercentage = (finalPosX / screenWidth) * 100; // Store as percentage
|
||||
|
||||
if (positionPercentage < 10) {
|
||||
if (positionPercentage < 20) {
|
||||
self.restorePosition = 'bottomLeft';
|
||||
self.restoreOffset = finalPosX;
|
||||
} else if (positionPercentage > 90) {
|
||||
} else if (positionPercentage > 80) {
|
||||
self.restorePosition = 'bottomRight';
|
||||
self.restoreOffset = screenWidth - finalPosX;
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user