-
26 Jul 2012 9:18 AM #1
Answered: Can you have Ext.img on top or inside of another Ext.Img?
Answered: Can you have Ext.img on top or inside of another Ext.Img?
I have a class that extends Ext.img. One of it's items ( xtype:'hotspot1') is itself an instance of another custom Image class. Now if I use xtype:'hotspot1' as one of my main Ext.panel's items it works fine. Is it just that I can't put an Ext.img on top of another.? Also the reason I'm doing this is to create a reusable hotspot img that I can place in any one of my img pages.
Code:Ext.define('test.view.page1', { extend: 'Ext.img', xtype: 'page1-0', config: { src: 'app/view/1-0/images/slide.png', items:[ { xtype:'hotspot1', //this is also an Image! top:0, left:0 } ] } });
-
Best Answer Posted by Mike6679
Ah, wait a minute Ext img is not a container, so I'm thinking thats why what I'm doing is not working. I will try to create a panel that houses my img and hotspot im as items. Hopefully that works.....
-
26 Jul 2012 10:04 AM #2
Ah, wait a minute Ext img is not a container, so I'm thinking thats why what I'm doing is not working. I will try to create a panel that houses my img and hotspot im as items. Hopefully that works.....


Reply With Quote