View Single Post
09/19/15, 02:06 PM   #9
circonian
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 613
Ah, I only looked at the controls scale I didn't look at the global UI scale.
Your right, the global scale appears to work differently. Although I'm not sure how. It does not appear to change the control width, it does return a scaled GetStringWidth(), but it does not appear to be a factor of the GetGlobaUIScale(), & it has no effect on SetWidth().

I was using this to examine the values:
Warning: Spoiler

But that would mean if your only using a global ui scale you shouldn't need to divide by GetGlobalUIScale(). Because GetStringWidth() returns the scaled width and setWidth is not effected by the GlobalUIScale. It works for me without it? Are you using both a globalUIScale & a scale on the control?


It is multiplied twice though using the controls scale.
Warning: Spoiler
  Reply With Quote