-
13 Sep 2012 9:09 AM #1
Custom mask is shown above Window
Custom mask is shown above Window
Ext version: 4.1.1
Code to reproduce:
Note I want to set custom text for mask using mask() method of elementPHP Code:var panel = new Ext.panel.Panel({
renderTo : document.body,
width : 400,
height : 400,
title : 'Test'
});
var window = new Ext.window.Window({
width : 200,
height : 200,
title : 'Window',
autoShow : true,
items : [ {
xtype : 'button',
text : 'mask',
handler : function() {
panel.getEl().mask('Mask Text');
}
}]
});
If I use panel.setLoading(true), mask is shown under window, but in this case I can't set custom text for mask
-
13 Sep 2012 10:17 AM #2
-
13 Sep 2012 11:13 PM #3
-
14 Sep 2012 4:39 AM #4
Please try the following instead:
Scott.Code:Ext.onReady(function() { var panel = new Ext.panel.Panel({ renderTo: document.body, width: 400, height: 400, title: 'Test' }); var window = new Ext.window.Window({ width: 200, height: 200, title: 'Window', autoShow: true, items: [{ xtype: 'button', text: 'mask', handler: function() { panel.setLoading('Mask Text'); // to obey zindex } }] }); });
-
17 Sep 2012 2:54 AM #5
Looks like we can't reproduce the issue or there's a problem in the test case provided.


Reply With Quote