Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/extjs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
extjs3.3:浮动面板_Extjs_Panel_Extjs3_Floating - Fatal编程技术网

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.
  }
});
试试这个并更新

干杯