Riftui

Riftui (https://www.riftui.com/forums/index.php)
-   General Authoring Discussion (https://www.riftui.com/forums/forumdisplay.php?f=20)
-   -   Issues with activated UI scaling (https://www.riftui.com/forums/showthread.php?t=681)

Dargor 04-09-13 06:31 AM

Issues with activated UI scaling
 
I'm just coding my first addon and have an issue with the width of my frames when I have activated the UI scaling.

I query the width with the following code:
Code:

width = UI.Native.BarMain:GetWidth()
and get the following results (tested at 1366x768):

with default UI scaling (checkbox is unchecked):
-width after login: 547px
-width after reloadui: 547px

with 100% UI scaling:
-width after login: 547px
-width after reloadui: 730px

with 75% UI scaling:
-width after login: 547px
-width after reloadui: 547px

with 125% UI scaling:
-width after login: 547px
-width after reloadui: 912px

So it seems that the default UI scaling is 75% and every UI scaling other than default or 75% will mess up my layout.

Is there a possibility to avoid this issue other than not querying UI.Native.BarMain:Getwidth()?


All times are GMT -6. The time now is 11:42 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2022 MMOUI