Skip to content
Commit 82a86854 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇 Committed by Volker Krause
Browse files

[Delegates] Use preferredWidth instead of width

When an item is inside a Layout, its width (and height) gets managed by said
layout, taking into account minimum/maximum/preferredWidth and implicitWidth.

Assigning width manually, does not behave as one expect here, since
Kirigami.Icon has an implicit size (of 32) and so with the nature of a ListView
creating delegates as you scroll, it becomes somewhat random which size
wins in the end, and might even change as an item goes out of view and back in.

While at it, use `smallMedium`, which, from the actual looks of the outcome
of this bug, is what the delegate should have been using. (Imho small is too small)
parent 79efe85b
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