Thread: BNToastFrame
View Single Post
07-24-14, 02:46 PM   #7
Resike
A Pyroguard Emberseer
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,290
Originally Posted by Aanson View Post
Hey,

I'm surprised that Lombra's suggestion isn't working for you.

You could try dictating the anchor points whenever the frame shows:

Lua Code:
  1. BNToastFrame:HookScript("OnShow", function(self)
  2.     self:ClearAllPoints();
  3.     self:SetPoint("TOPRIGHT", LeftChatBaseFrame, "TOPRIGHT", -7, -35);
  4. end);

On a side note after looking at your code. I know it's tempting to change something like reducing scale with an addon, and I appreciate that you've commented on the fact that increasing the scale will break your addon. Remember though that some people have over 100 addons installed at any one time. They'll likely not take kindly to a change in scale destroying the setup of all their other addons!
If you anchor everything to top/bottom/left/right of the UIParent, then changing the UIScale should not be a problem, since thoose points won't change.
  Reply With Quote