Skip to content

Commit 0e5538c

Browse files
committed
Make stat weight panel larger
1 parent 3b0f609 commit 0e5538c

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

src/Classes/TradeQuery.lua

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -623,9 +623,14 @@ function TradeQueryClass:SetStatWeights(previousSelectionList)
623623
local controls = { }
624624
local statList = { }
625625
local sliderController = { index = 1 }
626-
local popupHeight = 285
626+
local popupHeight = 500
627627

628-
controls.ListControl = new("TradeStatWeightMultiplierListControl", {"TOPLEFT", nil, "TOPRIGHT"}, {-410, 45, 400, 200}, statList, sliderController)
628+
local listYOffset = 45
629+
-- account for top gap, bottom button size and gap, and a gap before buttons
630+
local listHeight = popupHeight - 45 - 30 - 10
631+
632+
controls.ListControl = new("TradeStatWeightMultiplierListControl", { "TOPLEFT", nil, "TOPRIGHT" },
633+
{ -410, 45, 400, listHeight }, statList, sliderController)
629634

630635
for _, stat in ipairs(data.powerStatList) do
631636
if not stat.ignoreForItems and stat.label ~= "Name" then

0 commit comments

Comments
 (0)