【发布时间】:2013-06-12 09:44:20
【问题描述】:
我有视口:
new Ext.Viewport({
layout:'fit',
hideBorders:true,
items:[panel1,panel2,panel3],
});
现在我想在视口上方显示组合框:
var myCombo= new Ext.ComboBox({
store:myStore,
editable:false,
renderTo:Ext.getBody(),
triggerActions:'all',
mode:'local',
cls:'scales'
});
css:
.scales{
position:absolute,
botton:1em,
right:1em,
background-color:white
}
但它在左侧呈现。如何在右下角渲染?
更新
现在我将组合放入 Panle:
myPanel= new Ext.Panle({
items[myCombo],
renderTo:Ext.getBody(),
cls:'scales',
border:false
});
现在我的组合在右下角。但看起来像这样:
即使我从应用程序中删除视口代码,我也会得到相同的结果。我可以用组合做点什么吗?
【问题讨论】:
-
你不能。视口将占据整个身体。如果要使组合框可见,请使用面板而不是视口
-
@javapirate:你能举个例子吗?
标签: javascript extjs extjs3