View Full Version : Ext.Img not working as expected in Sencha Touch 2 with Designer 2 build 374
11 Apr 2012, 10:09 PM
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.
12 Apr 2012, 8:42 AM
Do you have your urlPrefix set in project preferences?
Can you provide us steps to reproduce the null error?
12 Apr 2012, 9:06 AM
I was having the same problem, but adding the URL Prefix fixed the problem.
12 Apr 2012, 12:32 PM
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.
12 Apr 2012, 12:35 PM
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.
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.