fix overlap with search and new option (#31)

this shifts the entire vendor window frame 10 pixels up, and squeezes in the search bar between the repair buttons and the GVS frame.
This commit is contained in:
Anthony Narkevicius
2023-02-05 20:51:35 -08:00
committed by GitHub
parent 708ff76106
commit 053e28adb3
@@ -33,7 +33,7 @@ S:AddCallbackForAddon("GnomishVendorShrinker", "GnomishVendorShrinker", function
if not GVS then return end
GVS:Size(304, 294)
GVS:Point("TOPLEFT", 19, -54)
GVS:Point("TOPLEFT", 19, -44)
GVS:SetTemplate("Transparent")
MerchantBuyBackItem:ClearAllPoints()
@@ -84,7 +84,7 @@ S:AddCallbackForAddon("GnomishVendorShrinker", "GnomishVendorShrinker", function
end
child:Height(18)
child:Point("TOPLEFT", GVS, "BOTTOMLEFT", 1, -61)
child:Point("TOPLEFT", GVS, "BOTTOMLEFT", 1, -3)
S:HandleEditBox(child)
elseif objType == "Slider" then
for _, child2 in ipairs({child:GetChildren()}) do
@@ -112,4 +112,8 @@ S:AddCallbackForAddon("GnomishVendorShrinker", "GnomishVendorShrinker", function
S:HandleScrollBar(child)
end
end
end)
MerchantBuyBackItem:ClearAllPoints()
MerchantBuyBackItem:Point("TOPLEFT", MerchantItem10, "BOTTOMLEFT", 0, -24)
MerchantBuyBackItemItemButton:ClearAllPoints()
MerchantBuyBackItemItemButton:Point("TOPLEFT", MerchantBuyBackItem, "TOPLEFT", 4, -4)
end)