20 Feb 2015 7:04 AM #1
ExtJs 4.2.3 Performance issue on border layout : too many useless layouts
When the border layout have a collapse zone, floating it out generates several useless layouts of untouch zones.
Here is a fiddle with a border layout. Open the console to see the "layout" events.
When floating temporarily the west zone (by clicking the bar - not the button), I would expect to have only "west layout" in my console, but I can see this
north layoutwest layout south layout east layout center layout north layout south layout east layout center layout
I have a big complex UI in my app, so each time a collapsed zone is temporarilly displayed, all zones are uselessly re-layouted.Best regards,
20 Feb 2015 1:06 PM #2
- Join Date
- Apr 2007
- Sydney, Australia
- Vote Rating
We have some ideas in general about preventing extraneous layouts from running however it's a difficult problem to solve in a generic fashion. Depending on the scope of the changes required we may back port that kind of improvement to 4, however we'll need to evaluate it once it comes in place to the codebase.Evan Trimboli
Twitter - @evantrimboli
Don't be afraid of the source code!
23 Feb 2015 12:56 AM #3
Does that mean when I will migrate to ExtJS 5.1 I won't have such extra-layouts ?
I did a quick try with fiddle to test on ExtJS 5.1 and I see no differences...
I understand that is quite complicated : I spent half a day trying to optimize for my particular case, without being successfullBest regards,