Hi, apologies if this has been asked before or if the answer is obvious, I’ve search this forum and I’m relatively new to Haxe itself.
I’m writing a function that adds components to the main view programmatically during runtime, but I’m running into an issue with height/width. In order to get these components to appear correctly I need to specify a height and width of 100%, but I don’t know how to accomplish this with haxe as the .width and .height properties expect a float value.
Thanks in advance and for your time!
Hi BirDt… welcome
So, if im understanding correctly, the property you are looking for is .percentWidth
and .percentHeight
. Let me know if thats what you meant.
Cheers,
Ian
Thanks Ian, that’s exactly what I was looking for
1 Like