Suggestion realization about HTML5Window

#1

original code (It’s invalid):

suggestion:

	public function setResizable(value:Bool):Bool
	{
		this.resizeElement = true;
		if (this.parent.element != null)
		{
			// from `openfl.displat.Stage` constructor
			if (value == true)
			{
				this.parent.element.style.width = '100%';
				this.parent.element.style.height = '100%';
			}
			else
			{
				this.parent.element.style.width = '';
				this.parent.element.style.height = '';
			}
		}
		return value;
	}
0 Likes

Stage align and scale mode