【发布时间】:2020-11-17 00:32:10
【问题描述】:
我想在我单击的位于标题中的按钮下打开一个面板窗口。面板应显示在按钮下方(与标题对齐):我尝试:
{
xtype:'button',
height: '100%',
text: Strings.Notifications,
glyph: 'xf142@FontAwesome',
reference: 'settingsNotificationsButton',
cls :'headerButtonsCls',
listeners: {
click: function () {
new Ext.form.Panel({
width: 200,
height: 200,
title: 'Foo',
floating: true,
closable: false
}).show();
}
}
}
但上面的代码将屏幕中间的面板显示为我不想要的模式(正如我所说的,我希望它在标题下方) 那么如何实现呢? 谢谢。
【问题讨论】: