I got this to work before. But now I am at the point if I don't know if I broke something or something got broken with construct 3 update.
I want to center the panel on X axis on screen. I used int(ViewportWidth("UI") / 2) before, but it does not work anymore. Also getting the window inner width via PlatfromInfo and setting it based on that value does not work. It all worked before, until it did not... It is all off to the left side of window a bit, kind of odd.
Switching the "unbounded scrolling" option on layout on/off does not affect the behaviour.
I am also trying to account for screen scaling, most of the 4k monitors are set to 200% scale, but can also be set to 175% etc, which messes up the rendering. -- How do I account for that?
Can someone also explain to me in which cases ViewportWidth can be something other than Window inner width, it is supposed to be viewport..? I presume if layer is scaled up?