事我必須視:如何使上述Ext.Viewport
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
}
但它的渲染在左邊。如何渲染它的右邊底部?
UPDATE
現在我把組合成Panle:
myPanel= new Ext.Panle({
items[myCombo],
renderTo:Ext.getBody(),
cls:'scales',
border:false
});
現在我的組合在右下角。但看起來像這樣:
即使我從應用程序中刪除視口代碼,我得到的結果相同。我可以用組合做些什麼嗎?
你不能。視口將採取整個身體。如果您想使組合框可見,請使用面板而不是視口 –
@ javapirate:您可以舉個例子嗎? –