Sencha Architect Forums /
Sencha Architect 2.x: Bugs /
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.
Do you have your urlPrefix set in project preferences?
Can you provide us steps to reproduce the null error?
I was having the same problem, but adding the URL Prefix fixed the problem.
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.
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.