Skip to content

applets/taskmanager: Fix applet's layout size with multiple rows

Ismael Asensio requested to merge work/iasensio/taskmanager-empty-space into master

The property Layout.maximumWidth of the taskList didn't take into account the number of rows. This was compensated later when calculating its actual width, but not for the applet's preferred size, resulting in extra demanded space.

To fix it, move the influence of the rows directly into the Layout.maximumWidth property.

This was only noticeable with the settings forceStripes==true, and fill==false because in any other combination, either the space is wanted, or the tasks fills the available space before creating a new row.

Due to symmetry, the same is done on vertical panels for 'Layout.maximumHeight` and the number of columns.

BUG: 490319
FIXED-IN: 6.1.4

Screenshots

Settings Screenshot_20240723_091218
BEFORE Screenshot_20240723_084822
AFTER Screenshot_20240723_085202

No changes for other combination of settings

Edited by Ismael Asensio

Merge request reports