View Single Post
09/18/15, 07:13 PM   #6
merlight
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 671
Necroing an old thread, because I have a related question.

I use GetStringWidth to make labels just a little bit wider than the text they contain (here). Today I noticed that with UI scale other than 1 the width is not correct -- with scale < 1 the text is too wide, it doesn't fit; with scale > 1 the control is too wide. Does GetStringWidth return width in pixels instead of UI units?
  Reply With Quote