Permalink
Browse files

Fixed stack overflow

  • Loading branch information...
1 parent cdd9f49 commit 657aed680799dd42b409fb85478f11b2ea16f227 @Tuller Tuller committed Oct 8, 2012
Showing with 2 additions and 12 deletions.
  1. +2 −12 menuBar.lua
View
@@ -205,22 +205,12 @@ function MenuBar:LayoutNormal()
end
function MenuBar:LayoutPetBattle()
- local parentFrame = _G['PetBattleFrame'].BottomFrame.MicroButtonFrame
- local anchorX, anchorY = -10, 27
-
- UpdateMicroButtonsParent(parentFrame)
- MoveMicroButtons("BOTTOMLEFT", parentFrame, "BOTTOMLEFT", anchorX, anchorY, true)
-
+ UpdateMicroButtonsParent(_G['PetBattleFrame'].BottomFrame.MicroButtonFrame)
self:FixButtonPositions()
end
function MenuBar:LayoutOverrideUI()
- local parentFrame = _G['OverrideActionBar']
- local anchorX, anchorY = OverrideActionBar_GetMicroButtonAnchor()
-
- UpdateMicroButtonsParent(parentFrame)
- MoveMicroButtons("BOTTOMLEFT", parentFrame, "BOTTOMLEFT", anchorX, anchorY, true)
-
+ UpdateMicroButtonsParent(_G['OverrideActionBar'])
self:FixButtonPositions()
end

0 comments on commit 657aed6

Please sign in to comment.