soros
5 Apr 2011, 9:01 AM
I encountered a rendering issue when a different size of a message boxes are displayed. For example, in my application first I display the following message:
Ext.Msg.confirm(
"Confirmation",
"Are you sure you want to proceed?",
function(btn) {
if (btn === 'yes') {
// do something…
}
},
this
);
... later on a user might be prompted with the following message:
Ext.Msg.prompt(
'Comment Required',
'Please enter a comment?',
function(btn, comment){
// do something…
},
this,
true,
null,
{placeholder : 'Your comment...'}
);
The second message box is not rendered properly, the size is not recalculated so it takes size of the confirm() dialog box.
Regardless of the order of calls, the size of the first message box stays until you refresh browser.
I attached the screen shots.
25494
25495
Ext.Msg.confirm(
"Confirmation",
"Are you sure you want to proceed?",
function(btn) {
if (btn === 'yes') {
// do something…
}
},
this
);
... later on a user might be prompted with the following message:
Ext.Msg.prompt(
'Comment Required',
'Please enter a comment?',
function(btn, comment){
// do something…
},
this,
true,
null,
{placeholder : 'Your comment...'}
);
The second message box is not rendered properly, the size is not recalculated so it takes size of the confirm() dialog box.
Regardless of the order of calls, the size of the first message box stays until you refresh browser.
I attached the screen shots.
25494
25495