PDA

View Full Version : Change columnWidth of a component on the fly



andyts93
11 Sep 2015, 2:06 AM
Hi,

I would change the columnWidth param of a component but I don't find any method to do it. I tried to change the property with

component.columnWidth = 1;
component.doLayout()
but it doesn't work. Is there a way to do it?

jdkhamba
13 Sep 2015, 4:46 AM
You need to call doLayout() on the parent container. Take a look at this example:

https://fiddle.sencha.com/#fiddle/tq6