fix parents when releasing/aquiring buttons, fixes inproper showing of buttons when reducing the number of buttons on a bar
This commit is contained in:
@@ -153,6 +153,7 @@ function ActionBar:UpdateButtons(numbuttons)
|
||||
|
||||
-- show active buttons
|
||||
for i = 1, numbuttons do
|
||||
buttons[i]:SetParent(self)
|
||||
buttons[i]:Show()
|
||||
buttons[i]:UpdateAction(true)
|
||||
end
|
||||
@@ -160,6 +161,7 @@ function ActionBar:UpdateButtons(numbuttons)
|
||||
-- hide inactive buttons
|
||||
for i = (numbuttons + 1), #buttons do
|
||||
buttons[i]:Hide()
|
||||
buttons[i]:SetParent(UIParent)
|
||||
end
|
||||
|
||||
self.numbuttons = numbuttons
|
||||
|
||||
Reference in New Issue
Block a user