1. #1
    Sencha User
    Join Date
    Jul 2012
    Location
    New Jersey
    Posts
    116
    Answers
    6
    Vote Rating
    5
    Mike6679 is on a distinguished road

      0  

    Default 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
            }
            
          ]
          
        }
        
    });

  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.....

  3. #2
    Sencha User
    Join Date
    Jul 2012
    Location
    New Jersey
    Posts
    116
    Answers
    6
    Vote Rating
    5
    Mike6679 is on a distinguished road

      0  

    Default


    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.....

Tags for this Thread