Dialog: Fix padding when resizing
This fixes the placement and padding of the mainItem when padding of that mainItem is explicitly set to a non-zero value and the dialog width is less than the implicit width.
Here's an example of a Dialog in Kasts; this is the regular view:
However, when you resize, the TextField
and Label
text above don't rescale nicely to the Dialog
width:
This is the same resized Dialog
, but now with this patch:
The patch consists of having Kirigami.Dialog
take the root.leftPadding
and root.rightPadding
into account for calculatedMaximumWidth
of the contentItem
.