0
我需要在面板控件内部放置一个窗口控件并约束该面板内的窗口。Extjs内部面板的窗口
这是我的代码重新开始:
Ext.define('App.view.MainWindow', {
extend: 'Ext.container.Viewport',
alias: 'widget.mainwindow',
layout: 'vbox',
items: [
{
xtype: 'panel',
height: 50,
width: '100%',
layout: 'hbox'
},
{
xtype: 'panel',
height: 400,
width: '100%',
layout: 'hbox',
items:[
window1 = Ext.create('Ext.window.Window', {autoShow:true, width:90}),
window2 = Ext.create('Ext.window.Window', {autoShow:true, width:400})
]
}
],
有了这个代码,在两个窗口出现在彼此的顶部。
谢谢。
什么是你希望达到什么目的? Windows在定义上是浮动的。另外,不确定数组内部的赋值是否要编译。 – themel
我需要制作一个垂直菜单(http://postimage.org/image/c4io120u5/),该菜单出现在其他控件的顶部。 – Beetlejuice