PDA

View Full Version : doLayout is slow in my application



same66
21 Feb 2011, 1:03 AM
Hi,

I have a web application and when I make a doLayout to display my extjs components, the method duration is 600-800ms :/

Do you know a method more fast or a method to accelerate the javascript treatment ?

thanks

same66
22 Feb 2011, 1:02 AM
up ? :)

drian
22 Feb 2011, 2:04 AM
yourComponent.doLayout() will actually loop through ALL yourComponent's children and call .doLayout on each of them, so i suggest you might try to call .doLayout only on the components that need to be refreshed.