-
29 Oct 2012 10:49 AM #1
iconCls for Ext.Msg displayed only one time, very first time
iconCls for Ext.Msg displayed only one time, very first time
iconCls for Ext.Msg displayed only one time, very first time you launch app/goto page.
My code:
First time I show the dialog I see:Code:Ext.Msg.show({ title:'Connect in progress', message:'Connecting with: <br/><b>' + name + '</b>', buttons:[], iconCls:'waitspinner', fn:function (buttonId) { } });
Second time, I don't see that HTML.HTML Code:<div id="ext-component-11" style="width: 40px !important; height: 40px !important; " class="x-icon waitspinner x-docked-left"></div>
I believe this is bug.
-
29 Oct 2012 11:03 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,684
- Vote Rating
- 435
I see the icon class after a couple opens in 2.1.0 RC2 with this code:
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) { } }); } });Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
29 Oct 2012 11:14 AM #3
Here is more information:
Secnha 2.0.1.1, Playbook 2.0, Webkit
Where do I get 2.1.0 RC2 ?
-
29 Oct 2012 11:39 AM #4
It is Totally reproducible on
http://try.sencha.com/touch/2.0.0/demos/Ext.Msg.buttons.disabled/viewer.html
just paste this in app.js
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.Code:/*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()
Windows 7, Chrome Version 22.0.1229.94 m
-
29 Oct 2012 11:43 AM #5Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,684
- Vote Rating
- 435
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
29 Oct 2012 1:50 PM #6
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....
-
30 Oct 2012 12:14 AM #7
-
7 Jan 2013 9:07 AM #8
It was totally bug for Sencha 2.0.1, now it seems to be fixed.
Looks like we cannot reproduce this. Please provide another test case to reproduce this issue.


Reply With Quote
