Now resizing it won't produce weir overlaps of the widgets. Thanks to Pelle Johansson for his help showing me how to do this. (cherry picked from commit ef3498e92d13c82633fdbe8120396bfbe1e7489a)
(cherry picked from commit bf54c267cba97b2b3b9a621da0575776a388b2cb)
(cherry picked from commit 656aaab95773bd70fc3504b68bf7e1d292891d93)