View Single Post
Unread 04-09-13, 06:31 AM   #1
Dargor
Zombie
 
Dargor's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2012
Posts: 1
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()?
Dargor is offline   Reply With Quote