[TIMOB-23583] iOS: on widget's controller WPATH doesn't work as expected
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Resolved |
Resolution | Needs more info |
Resolution Date | 2018-07-26T22:11:38.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | iOS |
Labels | imageview, widget, wpath |
Reporter | Mauro Piccotti |
Assignee | Unknown |
Created | 2016-01-04T17:48:15.000+0000 |
Updated | 2018-07-26T22:11:38.000+0000 |
Description
In a widget I used an ImageView with multiple images, loaded by WPATH. It worked until version 5.0.2.
In my widget I have images "loading_x.png" inside assets/images.
The widget is this one:
https://github.com/apra-informatica/Ti.ImageGallery/blob/master/controllers/widget.js
And the code:
spinnerImages = [
WPATH('/images/loading_1.png'),
WPATH('/images/loading_2.png'),
WPATH('/images/loading_3.png'),
];
spinner = Ti.UI.createImageView({
'backgroundColor' : 'transparent',
'width' : '64dp',
'height' : '64dp',
'images' : spinnerImages
});
It writes:
[ERROR] : couldn't load imageview image: /images/it.apra.tiimagegallery/loading_1.png at position: 0
Hello, Please provide a small sample code which generates the issue. We will try to regenerate in our environment, Also, provide detail steps to reproduce the issue. More info on the [WPATH](http://docs.appcelerator.com/platform/latest/#!/guide/WPATH%28%29_Example). Thanks.
I'm trying to reproduce it in a empty project and empty widget but there it works... I'm confused, by the way it stopped to work in my project and I don't know why, perhaps something related with the bug in ScrollableView.views. I'll update this issue if I'll understand a little more. Thanks for the quick reply.
I reproduced the bug in a empty project, you can clone it from my github repo: https://github.com/nonno/Ti.TestProject/tree/wpath-bug (you should click on the label) I don't know why but a removeAllChildren called on the container where I want to put my images causes the problem, look in widget.js and try to remove the comment.
Sorry [~pic], do you think you can include these in the tiapp.xml to see if helps?