Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    HowTo question: Resize TabSet to current tab's pane size

    Hi Isomorphic,

    I have the following use case:
    • Window (setWidth(700); setHeight(600);) containing
      • TabSet, with
        • Tab 1 (with just a DynamicForm inside)
        • Tab 2 (with just another DynamicForm inside)
        • Tab 3 (with just another DynamicForm inside)
        • Tab 4 (with just another DynamicForm inside)
      • HLayout (with just OK/Apply/Cancel buttons inside)
      • LayoutSpacer (experimenting)


    So basically it is like the layout_tabs_add_remove-sample, but as the DynamicForms are different size, it's not exactly the same.

    I'd like to archive the following: The window is big enough for all DynamicForms. I'd like the TabSet to be that high that the current Tab's Form is displayed, but not more and not less. Directly after the Tab's pane ends, the TabSet should also end and the buttons should be displayed.

    How do I archive this? The only thing I can manage are Buttons-HLayout always at the bottom or always somewhere else, but not Buttons-HLayout directly after the TabSet and the unneeded space after the Buttons-HLayout.

    I experimented with LayoutSpacer and some TabSet.setHeight(getHeight()), and reflow(), but nothing worked.

    Thank you & Best regards,
    Blama
Working...
X