Instance Panel

I have a panel and I pass it to the container. I want the panel to fit into the height of the container and do not want to indicate the height of the panel. but it doesn't seem to work, is there a way I could do this. Any ideas please help

<div id=Div style="width: 100%; height: 100%;"></div> var newPanel = new Ext.Panel({ id:'newPanel', renderTo:'Div', layout:'fit', border:false, items:[anotherPanel] }) 
+4
source share
3 answers

Use the โ€œfitโ€ layout on the container and set autoheight and autowidth to false in the child panel. The conformance layout should take care that the components inside it are automatically โ€œfitโ€.

+3
source

You can also try under the code:

 autoHeight: true 
+1
source

Source: https://habr.com/ru/post/1347347/


All Articles