PDA

View Full Version : [NOREPRO] iconCls for Ext.Msg displayed only one time, very first time



riahut.com
29 Oct 2012, 10:49 AM
iconCls for Ext.Msg displayed only one time, very first time you launch app/goto page.

My code:


Ext.Msg.show({ title:'Connect in progress',
message:'Connecting with: <br/><b>' + name + '</b>',
buttons:[],
iconCls:'waitspinner',
fn:function (buttonId) {
}
});


First time I show the dialog I see:


<div id="ext-component-11" style="width: 40px !important; height: 40px !important; " class="x-icon waitspinner x-docked-left"></div>

Second time, I don't see that HTML.

I believe this is bug.

mitchellsimoens
29 Oct 2012, 11:03 AM
I see the icon class after a couple opens in 2.1.0 RC2 with this code:


Ext.Viewport.add({
xtype : 'button',
text : 'Open Message',
handler : function() {
Ext.Msg.show({
title : 'Connect in progress',
message : 'Connecting with: <br/><b>' + name + '</b>',
buttons : [],
iconCls : 'waitspinner',
hideOnMaskTap : true,
fn : function (buttonId) {
}
});
}
});

riahut.com
29 Oct 2012, 11:14 AM
Here is more information:
Secnha 2.0.1.1, Playbook 2.0, Webkit

Where do I get 2.1.0 RC2 ?

riahut.com
29 Oct 2012, 11:39 AM
It is Totally reproducible on
http://try.sencha.com/touch/2.0.0/demos/Ext.Msg.buttons.disabled/viewer.html
j (http://try.sencha.com/touch/2.0.0/demos/Ext.Msg.buttons.disabled/viewer.html)ust paste this in app.js


/*global Ext:false */Ext.application({
launch: function () {
Ext.create('Ext.Container', {
fullscreen: true,
items: [{
xtype: 'toolbar',
docked: 'top',
items: [{
text: 'Show alert',
handler: function () {
var msg = Ext.Msg.show({
title: 'Ext.Msg.show()',
message: 'This dialog\'s button will be disabled for 4 seconds.',
iconCls: 'user',
buttons: [{
id: 'alertCancelBtn',
disabled: true,
text: 'Sure, why not',
ui: 'round decline'
}] // buttons
}); // show()

setTimeout(function () {
Ext.getCmp('alertCancelBtn').setDisabled(false);
}, 4000 /* ms */); // setTimeout()
} // handler
}] // items
}] // items (toolbar)
}); // create()
} // launch
}); // application()




First time you launch this in NEW WINDOW you will see space for icos to the left of the text (still no icon displayed) but second time and all other times, there will be no space for icon any more and no HTML of x-icon.

Windows 7, Chrome Version 22.0.1229.94 m

mitchellsimoens
29 Oct 2012, 11:43 AM
http://www.sencha.com/forum/announcement.php?f=92&a=36

riahut.com
29 Oct 2012, 1:50 PM
This path doesn't contain Sencha 2.1 RC2, only Sencha Command, where can I get Sencha 2.1 RC2 sdk?
In order to work with Sencha Cmd I need to specify path to SDK....

ingo.hefti
30 Oct 2012, 12:14 AM
This path doesn't contain Sencha 2.1 RC2...
Yes, it does! Look for the text/link DOWNLOAD

However, I agree, that one has to get used to this kind of announcement page layouts. A few more line breaks would have helped a lot... ;)

riahut.com
7 Jan 2013, 9:07 AM
It was totally bug for Sencha 2.0.1, now it seems to be fixed.