且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

extjs 3.3:浮动面板

更新时间:2022-06-07 08:45:42

使用浮动$ c时,需要注意以下事项$ c> config:

1)固定宽度 - 您已经完成
2)必须在渲染后明确设置该位置 >(例如 myPanel.setPosition(100,100); )。

1) Fixed width - which you've done 2) The position must be set explicitly after render (e.g., myPanel.setPosition(100,100);).

您还可以设置底层的Ext.Layer配置选项,而不是设置 floating:true 。您可以按照以下方式执行此操作:

You can also set the underlying Ext.Layer config option instead of just setting floating : true. You can do that in the following way:

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.
  }
});

尝试此更新!

干杯。