extjs3.3:浮动面板
我尝试在其他预创建的面板上创建浮动面板,我尝试了以下简单代码,但失败:extjs3.3:浮动面板,extjs,panel,extjs3,floating,Extjs,Panel,Extjs3,Floating,我尝试在其他预创建的面板上创建浮动面板,我尝试了以下简单代码,但失败: var testPanel = new Ext.Panel({ id: 'testP', width: 50, height: 100, floating: true,
var testPanel = new Ext.Panel({
id: 'testP',
width: 50,
height: 100,
floating: true,
title:'Test'
});
testPanel.show();
我还需要考虑什么
谢谢 使用浮动配置时,需要注意以下事项: 1) 固定宽度-你已经做到了 2) 渲染后必须明确设置位置(例如,
myPanel.setPosition(100100);
)
您还可以设置底层Ext.Layer配置选项,而不只是设置floating:true
。您可以通过以下方式执行此操作:
Ext.Panel({
//.. other config..,
floating : {
//Ext.Layer config options. Maybe a property in that will get you the desired effect that you're looking for.
}
});
试试这个并更新
干杯