I am giving some items (containers), in "View", a layout of hbox. Now I want to give flex value to each item through the "Controller". How can I do this?
I have gone through the docs but can't find any method like setFlex.
EDIT :
Ext.apply(Ext.getCmp('IdHere'), {flex: 1});
I have got the answer from this link.
But now the problem is that even I am changing the flex values dynamically, the view of the containers is not changing. It is remaining same.
I am not assigning flex values initially in "View" as stated here
解决方案
My first guess would be that need to rerun the layout process by calling doLayout() I am not quite sure but I think you have to call in on the parent element which holds the hbox layout.