jbum
10-23-2008, 06:41 PM
Hi,
I'd like to request for a new feature that will allow the MessageBox to mask any specified element, not just the "document.body" element.
Currently, in the getDialog() function for MessageBox, it specifically calls
dlg.render(document.body);
This appears to mask the entire page and centers the message box. It would be great to have this code to take in a configurable Element.
dl.render(renderTargetElement);
It can default to the document.body element but have it configurable through a setter function or a config in Ext.Msg.show(...).
Issues:
Even with this, the message box does not seem to be centering on the configured element.
** Please see msgbox1.jpg **
I have to call the following explicitly to center it on the correct element (in this case the panel on the bottom).
** Please see msgbox2.jpg **
Ext.Msg.getDialog().getEl().center('panel-two');
Would really appreciate a feature change for this.
I'd like to request for a new feature that will allow the MessageBox to mask any specified element, not just the "document.body" element.
Currently, in the getDialog() function for MessageBox, it specifically calls
dlg.render(document.body);
This appears to mask the entire page and centers the message box. It would be great to have this code to take in a configurable Element.
dl.render(renderTargetElement);
It can default to the document.body element but have it configurable through a setter function or a config in Ext.Msg.show(...).
Issues:
Even with this, the message box does not seem to be centering on the configured element.
** Please see msgbox1.jpg **
I have to call the following explicitly to center it on the correct element (in this case the panel on the bottom).
** Please see msgbox2.jpg **
Ext.Msg.getDialog().getEl().center('panel-two');
Would really appreciate a feature change for this.