Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Touch Premium Member
    Join Date
    Mar 2011
    Posts
    13
    Vote Rating
    0
    steveaxelrad is on a distinguished road

      0  

    Default Ext.Img not working as expected in Sencha Touch 2 with Designer 2 build 374

    Ext.Img not working as expected in Sencha Touch 2 with Designer 2 build 374


    Within a Container, the image height has a default of 201 which cannot be changed.

    When the Container is transformed to a Panel, an error message appears:

    TypeError: 'Null' is not an object
    Source Class: undefined line 0

    Within or without a Container, the image Designer icon states "No Image found" even though the App in fact loads and display the image.

  2. #2
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,306
    Vote Rating
    125
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    Do you have your urlPrefix set in project preferences?

    Can you provide us steps to reproduce the null error?
    Aaron Conran
    @aconran
    Sencha Architect Development Team

  3. #3
    Sencha User
    Join Date
    Jan 2011
    Posts
    14
    Vote Rating
    0
    jlwarren1 is on a distinguished road

      0  

    Default


    I was having the same problem, but adding the URL Prefix fixed the problem.

  4. #4
    Touch Premium Member
    Join Date
    Mar 2011
    Posts
    13
    Vote Rating
    0
    steveaxelrad is on a distinguished road

      0  

    Default


    Setting urlPrefix fixed all of the problems.

    Seems to be some rough edges. After fixing, MyContainer.js would not save/save changes in that file without redoing the container in Designer. If the image url is added before the image.jpg is in the file, the image url had to be deleted and then added back. Having to add the folder name to the URL Prefix as a project preference seemed burdensome.

  5. #5
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,306
    Vote Rating
    125
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    The urlPrefix is a critical configuration you must set for your project.

    It tells the Designer how to deal with relative urls for many things such as stores, images, etc.

    If you are able to reproduce the Container and null exception, please report it on the bug forums so that we can fix it. I have a feeling the image and container issues are independent problems.
    Aaron Conran
    @aconran
    Sencha Architect Development Team

Thread Participants: 2