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.
main.percentHeight = 100/Toolkit.scale;
main.percentWidth = 100/Toolkit.scale;