PDA

View Full Version : [CLOSED] TableLayout - AbstractComponent - Sizing



macinator
Jun 13, 2013, 8:43 AM
Hi,

I wonder if you can help me

I am using the TableLayout to control the layout of my dynamically created form

I have 7 components on the panel with a total column width of 90 and some components set to a colspan of 30

But the component does not stretch to accomodate the colspan of 30 it says the standard width of the component

How do i get the component to stretch or size based on the colspan and rowpan it needs to occupy on the panel

Please advise

Thanks

Mac

Daniil
Jun 13, 2013, 10:46 AM
Hi @macinator,

It should stretch as here:
http://examples2.ext.net/#/Layout/TableLayout/Simple_in_Markup/

Could you provide a test case to reproduce?

macinator
Jun 13, 2013, 11:09 AM
Hi,

That example uses html as the content of the panels not ext.net components -

If my content of the panels is components (ie textboxes) it does not stretch

Eventually, I have accomplished the task using a combination of vboxlayout and hboxlayout but I wondered if there was a better way as tablelayout is basically what i am trying to achieve

Mac

Daniil
Jun 13, 2013, 11:48 AM
Yes, you might need to use inner layouts to get stretching.


but I wondered if there was a better way as tablelayout is basically what i am trying to achieve

Well, according to the requirement it looks good to use a TableLayout. But, in generally a TableLayout is a weak one. For example, you might face issues with resizing. If you need resizing, I would recommend to use a combination of VBox and HBox layouts to organize "table cells".