I tried splitting up the chain like this. Even sending in 10 milliseconds did 
not work. The best test is to close LiveCode then open it back up and run the 
stack. If resizing one of the images works the first time, then it is good. 

However, delaying the command to send for the image does not work for the first 
resizing of the image in this scenario.

The way it is posted right now seems to work fine. I am going to leave it that 
way for now, while I try to find a way to detect when the canvas is fully 
rendered in JavaScript.

Sent from my iPhone

> On May 11, 2017, at 7:24 PM, hh via use-livecode 
> <use-livecode@lists.runrev.com> wrote:
> 
> You could try to leave out the "liveCode.JStoLC" from the html.
> Instead send the conversion 'delayed", 1 tick should be enough:
> 
> local svgb="SVGBrowser1"
> send "processSVG tID" to widget svgb
> put "var dd=document.getElementById('canvas1');" & \
>     "liveCode.JStoLC(dd.toDataURL(),tID)") into js
> send "do js in widget svgb" to me in 1 tick
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to