Skip to content

Commit

Permalink
1.15.0 (52186)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Nov 14, 2023
1 parent 2a0fa97 commit 96d75c4
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions Interface/FrameXML/StaticPopup.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5197,19 +5197,21 @@ function StaticPopup_Show(which, text_arg1, text_arg2, data, insertedFrame)
end
end

if info.verticalButtonLayout then
buttons[1]:SetPoint("TOP", dialog.text, "BOTTOM", 0, -16);
for index = 2, #buttons do
buttons[index]:SetPoint("TOP", buttons[index-1], "BOTTOM", 0, -6);
if #buttons > 0 then
if info.verticalButtonLayout then
buttons[1]:SetPoint("TOP", dialog.text, "BOTTOM", 0, -16);
for index = 2, #buttons do
buttons[index]:SetPoint("TOP", buttons[index-1], "BOTTOM", 0, -6);
end
else
local offset = totalWidth / 2;
buttons[1]:SetPoint("BOTTOMLEFT", dialog, "BOTTOM", -offset, bottomSpace);
for index = 2, #buttons do
buttons[index]:SetPoint("BOTTOMLEFT", buttons[index-1], "BOTTOMRIGHT", buttonPadding, 0);
else
local offset = totalWidth / 2;
buttons[1]:SetPoint("BOTTOMLEFT", dialog, "BOTTOM", -offset, bottomSpace);
for index = 2, #buttons do
buttons[index]:SetPoint("BOTTOMLEFT", buttons[index-1], "BOTTOMRIGHT", buttonPadding, 0);
end
end
end

if info.extraButton then
local extraButton = dialog.extraButton;
extraButton:Show();
Expand Down

0 comments on commit 96d75c4

Please sign in to comment.