I have a Window where I setAutoSize(true) and setKeepInParentRect(true). I then create a VLayout containing a DynamicForm and an HLayout with a couple of IButtons which I then addItem(the VLayout) to the window.
The DynamicForm has a variable number of fields in it. When the number of fields is large, the DynamicForm is too tall to fit in the viewport, and even with setKeepInParentRect(true) this causes the Window to exceed the size of the parent rectangle.
How can I prevent this? I tried setting maxHeight on the Window, the layout and the form and none seem to have the desired effect of keeping the Window inside the viewport and creating a scrollbar to scroll and see the full layout.
The DynamicForm has a variable number of fields in it. When the number of fields is large, the DynamicForm is too tall to fit in the viewport, and even with setKeepInParentRect(true) this causes the Window to exceed the size of the parent rectangle.
How can I prevent this? I tried setting maxHeight on the Window, the layout and the form and none seem to have the desired effect of keeping the Window inside the viewport and creating a scrollbar to scroll and see the full layout.
Comment