面板合适布局 [英] extjs Panel fit layout

查看:117
本文介绍了面板合适布局的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个面板,我将它渲染成一个容器。我想让面板适合容器高度,不想指定面板的高度。但是似乎没有办法可以做到这一点。任何想法请帮助

 < 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆