1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-03-01 00:58:24 +03:00

set minimum maxLength to 30%

--when the user was using the mouse wheel to change
the maximum length, the maximum length could get
lower values than 30%
This commit is contained in:
Michail Vourlakos 2018-03-02 00:14:57 +02:00
parent cb88d134f4
commit cd3616537c

View File

@ -51,7 +51,7 @@ MouseArea{
function updateMaxLength(step) {
var tempML = plasmoid.configuration.maxLength + step;
var value = Math.max(Math.min(tempML,100),0);
var value = Math.max(Math.min(tempML,100),30);
plasmoid.configuration.maxLength = value;