Hello, I would like to know if it is possible to modify the width and height properties of the Lime canvas at runtime, so that it changes when the orientation of the mobile phone is changed, for example. My current dimensions now in the tag are the same even if I change the canvas size, and I cannot modify them from haxe.
This is the way Im trying to modify the canvas but it doesn’t work.
var canvas:CanvasElement = cast Browser.document.getElementById(“openfl-content”).firstChild;
canvas.width = 1280;
canvas.height = 720;