Set a sane minimum size

We need to take into account the main item's dimensions in the minimum
width and height properties.


(cherry picked from commit f11ce7b9)
2 jobs for Plasma/5.24 in 5 minutes and 56 seconds (queued for 1 second)