View Full Version : [2.0] Embedded Border Layout Fails to Render Contents

23 Nov 2007, 2:17 PM

I have been trying without success to instantiate a web page with an embedded Panel that uses a Border Layout. Having no success, I decided to modify existing examples and encountered the same problem wherein none of the contents of the Border Layout Object can be rendered. The attached .htm and .js files can be saved to a directory and then be loaded in a browser by file reference. The code is a simple combination of the Paging Grid Example and the Border Layout documentation example. Only the title gets displayed.

I have not included any javascript error codes because depending on different modifications I make, I get different errors or no errors, but never any output.



23 Nov 2007, 2:40 PM
Just add a height to the Panel config.

Height problems are becoming too frequent... :)

23 Nov 2007, 6:24 PM
Thanks for that. I wrongly thought that the contents of the panel would determine its size.

For others who hit the same problem, it might make sense to make autoHeight and autoWidth as default parameters or throw an error if the the width/autoWidth or height/autoHeight are not set.