Commit 093e2d91 authored by Nate Graham's avatar Nate Graham 💤
Browse files

[applets/taskmanager] Perform more rounding in thumbnail size calculation

It fixes issues where sometimes the thumbnail content is one pixel too
tall. Apparently Latte Dock already does this in its fork of this toolTip
code (see D26760), to positive effect.
parent 2c3aa1d9
......@@ -165,7 +165,7 @@ Column {
width: header.width
// similar to 0.5625 = 1 / (16:9) as most screens are
// round necessary, otherwise shadow mask for players has gap!
height: Math.round(0.5 * width) + (!winTitle.visible? winTitle.height : 0)
height: Math.round(0.5 * width) + (!winTitle.visible? Math.round(winTitle.height) : 0)
anchors.horizontalCenter: parent.horizontalCenter
visible: isWin
Markdown is supported
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