Jump to content

Fixed height, variable width widgets


photo

Recommended Posts

I have been trying to create multiple columns of items with a fixed height, but variable width (so they expand evenly to fill the width of the window). I've tried putting them in gridbox, and in rows of hboxes all contained within a vbox (and a few other variations), but in every case the items expand to fill both height and width. Any suggestions how I should structure the ui to get the pattern I'm after?

Link to comment

I have been trying to create multiple columns of items with a fixed height, but variable width (so they expand evenly to fill the width of the window). I've tried putting them in gridbox, and in rows of hboxes all contained within a vbox (and a few other variations), but in every case the items expand to fill both height and width. Any suggestions how I should structure the ui to get the pattern I'm after?

 

A nested pair of vbox elements seems to do the trick. Have a look at the UI files in the editor for an example of doing this.

Link to comment
×
×
  • Create New...