Problem With GUI Elements And Screen Resize?(SOLVED)

Hi,

I just noticed something bad:
If the game’s screen is resized, GUI elements are not properly resized?
How would I tell Defold to resize GUI elements proportionately to the resizing of the screen?

Have a little demo below which shows the above issue:
http://fallenangelsoftware.com/stuff/files/RedLightRacer/HTML5/js-web/RedLightRacer/index.html

Let me know, thanks!

J.

You can set an adjust mode per node (stretch, zoom and fit). Also anchoring per node.

So I can set that in the GUI’s script?
What command do I use?

Thanks!

J.

I found it, it’s in the settings for the button and text…
Thanks!

J.

Yes, in the properties panel in the editor or probably also as functions on the gui.* namespace.