How to set exactly not the maximum height, but the default height, that is, the vertical size of the widget? Шf you do exactly as with the width then nothing will work