actionbars: adjust layout size for dynamically spawned buttons

This commit is contained in:
Road-block
2018-01-08 18:24:44 +01:00
committed by Shagu
parent cb34dd715f
commit 7bc0c76b2a
2 changed files with 8 additions and 3 deletions
+1 -1
View File
@@ -283,7 +283,7 @@ pfUI:RegisterModule("actionbar", function ()
pfUI.bars.shapeshift:SetPoint("BOTTOM", anchor, "TOP", 0, default_border * 3)
UpdateMovable(pfUI.bars.shapeshift)
if C.bars.background == "1" then CreateBackdrop(pfUI.bars.shapeshift, default_border) end
BarLayoutSize(pfUI.bars.shapeshift, shapeshiftbuttons, C.bars.shapeshift.formfactor, C.bars.icon_size, default_border)
BarLayoutSize(pfUI.bars.shapeshift, NUM_SHAPESHIFT_SLOTS, C.bars.shapeshift.formfactor, C.bars.icon_size, default_border,shapeshiftbuttons)
pfUI.bars.shapeshift:SetWidth(pfUI.bars.shapeshift._size[1])
pfUI.bars.shapeshift:SetHeight(pfUI.bars.shapeshift._size[2])
pfUI.bars.shapeshift:Show()