When I set new image url to layer, and try to use immediately pixelheight I get height of old image. When I call again the same method, then pixelheight has value of new image.
set(layer[adPicture].url, %1);
layer[adPicture].updatepos();
set(layer[adText].y, get(layer[adPicture].pixelheight));
Is there any method to force load of the new picture before updatepos() call to get proper value of pixelheight?