made entries shrink when there's a scrollbar
This commit is contained in:
+7
-1
@@ -746,7 +746,7 @@ function Auctionator_ScrollbarUpdate()
|
||||
else
|
||||
numrows = getn(auctionatorEntries[currentAuctionItemName])
|
||||
end
|
||||
|
||||
|
||||
FauxScrollFrame_Update(AuctionatorScrollFrame, numrows, 12, 16);
|
||||
|
||||
for line = 1,12 do
|
||||
@@ -755,6 +755,12 @@ function Auctionator_ScrollbarUpdate()
|
||||
|
||||
local lineEntry = getglobal("AuctionatorEntry"..line)
|
||||
|
||||
if numrows <= 12 then
|
||||
lineEntry:SetWidth(603)
|
||||
else
|
||||
lineEntry:SetWidth(585)
|
||||
end
|
||||
|
||||
lineEntry:SetID(dataOffset)
|
||||
|
||||
if currentAuctionItemName and dataOffset <= numrows and auctionatorEntries[currentAuctionItemName][dataOffset] then
|
||||
|
||||
Reference in New Issue
Block a user