Results 1 to 2 of 2

Thread: setHeight() error when creating Ext.Image

  1. #1
    Sencha User dobie_'s Avatar
    Join Date
    Sep 2011
    Location
    Seattle, WA
    Posts
    47
    Vote Rating
    0
      0  

    Default setHeight() error when creating Ext.Image

    Hello,
    I have a panel that I want to put an Ext.Image in. I've tried this:

    Code:
            {
              xtype: 'image',
              src: 'images/logo.png',         
              height: 300,
              width: 400
            },
    But I get this error:
    Code:
    Uncaught TypeError: Cannot call method 'setHeight' of undefined
    So I'm just using a panel and setting the 'html' config option for now. Has anyone else run into this problem? I'm using ST2.0-pr3

  2. #2
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,029
    Vote Rating
    1367
      0  

    Default

    There is an open bug that has been fixed since PR3 for sizing issues with Ext.Img
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •