I use scaling for mobile using the Toolkit scale. It works fine, but not so with Dialogs. The scale seems to work fine but the coordinates are wrong, and it’s at the bottom right somewhat clipped. On windows and html, it’s centered, presumably because there is no scaling. If I disable scaling, the Dialog is centered. I want to make the two play nice.
I tried setting autoCenterDialog and centerDialog to true (which I believe also defaults to true from DialogBase). I tried styling margins of .dialog to auto. No luck.
I tried setting the dialog coordinates manually, and am able to do so only if I set centerDialog to false. So I suspect that the centering somewhat does the job, but incorrectly due to the scaling. Is this a bug or did I miss a step?
For additional info, I have autoscaling on (default) and adjusted the my main component’s dimensions based on the scale.
Yes, got the same results on html. I was digging around in the forum and looking into the haxeui code to see if I missed something. I guess I didn’t and it’s a bug?
Ok, that should be fixed now in git version… I actually noticed some other little issues regarding scale, ive made a note to make some revisions, but there are fixes for the obvious ones i found.
Great, glad thats fixed it… ive made a note on my list to review the scale handling so that maybe this type of fix isnt needed. But ill need to play with all backends first