I have a script that shows a medium size widget but also has a function to manipulate a big image (of size
Device.screenResolution()). The script runs properly inside app and previews the widget as well as manipulates the image.
However, when it runs in widget mode it doesn’t execute past
const DEVICE_RESOLUTION = Device.screenResolution() const imgCanvas=new DrawContext(); imgCanvas.size = DEVICE_RESOLUTION; const mainRect = new Rect(0,0,DEVICE_RESOLUTION.width,DEVICE_RESOLUTION.height); imgCanvas.drawImageInRect(image,mainRect);
If I use smaller dimensions for the mainRect it works fine in widget mode but doesn’t solve my purpose.
Does anybody have any insights on this? Is this a bug or intentional behaviour?