【发布时间】:2013-01-31 21:25:40
【问题描述】:
我动态创建了一个底部工具栏,但无论我为 height 属性赋予的值如何,它都有其默认高度。我尝试了百分比、像素、简单的数字,但没有任何效果。
myComponent.add({
xtype:'toolbar',
autoDestroy:true,
docked:'bottom',
bottom:0,
width:'100%',
height:'5px',
margin:'0 0 0 0',
padding:'0 0 0 0',
layout:{
pack:'middle',
align:'middle'
}
});
【问题讨论】:
-
我也尝试了 maxHeight 配置,但它不起作用
标签: sencha-touch-2 toolbar sencha-touch-theming