extjs window显示在顶层

最开始的样式:

完成后的样式:

下面是代码:


需要在加上top就OK了,但是需要注意,有时候会报找不到top.Ext.Window

你需要在Ext的代码里面写,

InpatientViewPanel=Ext.extend(Ext.grid.GridPanel,{

constructor:function(){

InpatientViewPanel.superclass.constructor.call(this,{});

},

showWindow:function(){

//上面粘贴的代码 这样写是OK的

}

});


posted @ 2012-04-20 12:33  spring3  阅读(517)  评论(0编辑  收藏  举报