Verified Commit 7ce766b4 authored by Fushan Wen's avatar Fushan Wen
Browse files

applets/taskmanager: Use `PlasmaCore.Units.largeSpacing` to estimate width/height

The spacing between tasks is `PlasmaCore.Units.largeSpacing`, not
`2*PlasmaCore.Units.smallSpacing`.
parent b7d20a1a
Pipeline #167496 passed with stage
in 5 minutes and 17 seconds
......@@ -99,8 +99,8 @@ Loader {
id: delegateModel
// On Wayland, a tooltip has a significant resizing process, so estimate the size first.
readonly property int estimatedWidth: (toolTipDelegate.isVerticalPanel ? 1 : count) * (toolTipDelegate.tooltipInstanceMaximumWidth + PlasmaCore.Units.smallSpacing * 2) - PlasmaCore.Units.smallSpacing * 2
readonly property int estimatedHeight: (toolTipDelegate.isVerticalPanel ? count : 1) * (toolTipDelegate.tooltipInstanceMaximumWidth / 2 + PlasmaCore.Units.smallSpacing * 2) - PlasmaCore.Units.smallSpacing * 2
readonly property int estimatedWidth: (toolTipDelegate.isVerticalPanel ? 1 : count) * (toolTipDelegate.tooltipInstanceMaximumWidth + PlasmaCore.Units.largeSpacing) - PlasmaCore.Units.largeSpacing
readonly property int estimatedHeight: (toolTipDelegate.isVerticalPanel ? count : 1) * (toolTipDelegate.tooltipInstanceMaximumWidth / 2 + PlasmaCore.Units.largeSpacing) - PlasmaCore.Units.largeSpacing
model: tasksModel
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment