Multiple lines with containers
Hi guys,
Can anyone experienced give me some clue how to force "line break" while using hbox layout with many elements?
Here is sample code:
xtype:'container',
height:30,
layout:
{
type:'hbox'
},
items: [
{ xtype: 'button', width:100, text: 'Btn 1', margin: 2 },
{ xtype: 'button', width:100, text: 'Btn 2', margin: 2 },
{ xtype: 'button', width:100, text: 'Btn 3', margin: 2 },
{ xtype: 'button', width:100, text: 'Btn 4', margin: 2 },
]
Considering 300px window width, one element is not visible. How to make it move to the next line automatically?
General, I want to add elements dynamically with different widths.
Any suggestions appreciated.