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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Vote Rating
    1272
      0  

    Default

    There is an open bug that has been fixed since PR3 for sizing issues with Ext.Img
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    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
  •