Recently I had to fix a lot of “[E] Layout run error” errors in an ExtJS 4.2.0 app. While I like to think I know ExtJS layouts fairly well and consider them one of the best parts of ExtJS, this experience has shown me a “darker” side of ExtJS layouts. When you’re dealing with many (10+) layers of Containers, it seems there exist many unpredictable combinations of layouts that will result in “[E] Layout run error” in console, sometimes with functional implications, and other times without. Sometimes the smallest things can cause this error; i.e. I had a configuration setting on a Container:
style: { height: '54px' } |
style: { height: '54px' }
…and while everything looked and functioned correctly, a “layout run error” was being logged; changing the configuration to an explicit height solved the issue:
The following 2-step approach has worked for me in systematically resolving numerous of these layout run errors:
Continue reading Debugging ExtJS “Layout Run Error”
VN:F [1.9.22_1171]
Rating: 10.0/10 (4 votes cast)