View Single Post
10-15-17, 03:38 PM   #3
myrroddin
A Pyroguard Emberseer
 
myrroddin's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 1,240
A few follow-up notes:
  • When creating myFrame, do all things you would do normally, including SetSize or SetHeight/SetWidth, SetScale, and SetPoint, then pass myFrame to your pixel perfection function.
  • Your pixel perfection function ought to be exactly that –– a separate function, which could be a local function.
  • Said function will change myFrame's height and/or width. That is normal.
  • During all stages where you want to either floor or ceil a measurement, be consistent. Stick to floor or ceil and do not alternate between the two unless absolutely necessary.
  • The finished myFrame will have a different height or width or both than you originally created, which again, is normal.
  Reply With Quote