From 8de72043a2f201bc7ea639abec64ffba118736da Mon Sep 17 00:00:00 2001 From: Adrian L Lange Date: Wed, 20 Aug 2014 22:49:40 +0200 Subject: [PATCH] Only clear the container's anchor when we're gonna set it --- BonusRollPreview.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/BonusRollPreview.lua b/BonusRollPreview.lua index ea15cac..5b0735e 100644 --- a/BonusRollPreview.lua +++ b/BonusRollPreview.lua @@ -128,6 +128,7 @@ local function HandleClick(self) end local function HandlePosition() + Container:ClearAllPoints() if(PositionDownwards()) then Container:SetPoint('TOP', BonusRollFrame, 'BOTTOM') @@ -258,6 +259,7 @@ function Container:Populate() end end + self:Hide() self:SetHeight(math.min(330, math.max(50, 10 + (numItems * 40)))) if(numItems > 0) then @@ -284,9 +286,6 @@ function Container:Populate() EncounterJournal:RegisterEvent('EJ_LOOT_DATA_RECIEVED') EncounterJournal:RegisterEvent('EJ_DIFFICULTY_UPDATE') end - - self:ClearAllPoints() - self:Hide() end function Container:Update() -- 1.7.9.5