-
23 Apr 2012 6:02 PM #1
Unanswered: Draw component item disappears after a few seconds
Unanswered: Draw component item disappears after a few seconds
Hi,
This might be a dumb question, but I'm starting out with Sencha Touch Charts 2 and I am running into the problem when I add "Ext.draw.Component" to a panel with two circles, like this:
The problem is that a few seconds after the circles are rendered, they simply disappear. I do not understand since it's not as if the panel is being refreshed or repainted or something of that nature, I do nothing at all with the app and the circles disappear.Code:initialize: function(c){ var drawComponent = new Ext.draw.Component({ items: [ { type: 'circle', fill: '#ffffff', radius: 5, x: 100, y: 100 }, { type: 'circle', fill: '#ffffff', radius: 5, x: 120, y: 100 } ] }); this.add(drawComponent);}
Any ideas ?
Thanks in advance for your help
-
25 Apr 2012 7:15 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,714
- Vote Rating
- 436
- Answers
- 3113
First thing that jumps out at me is you are overriding initialize method but not calling
Code:this.callParent();
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.


Reply With Quote