面板合适布局 [英] extjs Panel fit layout
本文介绍了面板合适布局的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
< div id = Div style =width:100%; height:100%;>< / div>
var newPanel = new Ext.Panel({
id:'newPanel',
renderTo:'Div',
layout:'fit',
border:false,
items:[anotherPanel]
})
解决方案
你可以使用这个插件: http://www.sencha.com/forum/showthread.php?28318-Fit-to-parent&highlight=fitToParent
i have a panel and i am rendering it into a container. i want the panel to fit into the container height and dont want to specify the height of the panel..but dont seem to work is there a way i could do it..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]
})
解决方案
You could use this plugin: http://www.sencha.com/forum/showthread.php?28318-Fit-to-parent&highlight=fitToParent
这篇关于面板合适布局的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文