Is that all the original code? Because based on what I can find by searching around and fiddling a bit, it shouldn't work; the resize event only fires on the window, not elements.

By on 11/25/2015 9:27 AM ()

Thanks Loïc. Testing my original code, it fails to resize the canvas also. Rather than relying on the window resize event as the only source of change, I'll try checking the required size before each render. The equivalent of

1
JS.SetInterval (fun () -> onResize canvasDiv.Dom) 15 |> ignore

Regards, cadull

By on 11/25/2015 2:09 PM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper