diff --git a/containment/package/contents/config/main.xml b/containment/package/contents/config/main.xml
index 82909756b..cd2c55245 100644
--- a/containment/package/contents/config/main.xml
+++ b/containment/package/contents/config/main.xml
@@ -49,6 +49,10 @@
false
+
+ false
+
+
-1
diff --git a/containment/package/contents/ui/main.qml b/containment/package/contents/ui/main.qml
index 7d42f1d46..0048c4e8b 100644
--- a/containment/package/contents/ui/main.qml
+++ b/containment/package/contents/ui/main.qml
@@ -79,6 +79,11 @@ Item {
return false;
}
+ if (screenEdgeMarginEnabled && plasmoid.configuration.fittsLawIsRequested) {
+ //! dont use when floating views are requesting Fitt's Law
+ return false;
+ }
+
return (visibilityManager.panelIsBiggerFromIconSize && (maxZoomFactor === 1.0)
&& (latteView.visibility.mode === Latte.Types.AlwaysVisible || latteView.visibility.mode === Latte.Types.WindowsGoBelow)
&& (plasmoid.configuration.panelPosition === Latte.Types.Justify)
diff --git a/shell/package/contents/configuration/pages/AppearanceConfig.qml b/shell/package/contents/configuration/pages/AppearanceConfig.qml
index 0631edeed..37a406155 100644
--- a/shell/package/contents/configuration/pages/AppearanceConfig.qml
+++ b/shell/package/contents/configuration/pages/AppearanceConfig.qml
@@ -354,7 +354,7 @@ PlasmaComponents.Page {
value: plasmoid.configuration.maxLength
from: 30
to: 100
- stepSize: 2
+ stepSize: 1
wheelEnabled: false
function updateMaxLength() {
diff --git a/shell/package/contents/configuration/pages/BehaviorConfig.qml b/shell/package/contents/configuration/pages/BehaviorConfig.qml
index b11cb3c27..4457db71d 100644
--- a/shell/package/contents/configuration/pages/BehaviorConfig.qml
+++ b/shell/package/contents/configuration/pages/BehaviorConfig.qml
@@ -694,6 +694,20 @@ PlasmaComponents.Page {
}
}
+ LatteComponents.CheckBox {
+ id: fittsLawChk
+ Layout.maximumWidth: dialog.optionsWidth
+ text: i18n("Always use empty screen gap when in floating mode")
+ checked: plasmoid.configuration.fittsLawIsRequested
+ tooltip: i18n("When the dock or panel is in floating mode, the gap to the screen is also used by items")
+ visible: dialog.highLevel
+ enabled: !plasmoid.configuration.shrinkThickMargins && (plasmoid.configuration.screenEdgeMargin >= 0)
+
+ onClicked: {
+ plasmoid.configuration.fittsLawIsRequested = checked
+ }
+ }
+
LatteComponents.CheckBox {
Layout.maximumWidth: dialog.optionsWidth
// Layout.maximumHeight: mouseWheelChk.height