From ac47731f196c003b386dac62882822e07cd1f079 Mon Sep 17 00:00:00 2001 From: Matt <38044816+mattcapazz@users.noreply.github.com> Date: Mon, 31 Oct 2022 17:26:03 +0000 Subject: [PATCH] fix spacement when optionBtn gone (#2) --- Bagnon/components/frame.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Bagnon/components/frame.lua b/Bagnon/components/frame.lua index eb3b103..14aa6cb 100644 --- a/Bagnon/components/frame.lua +++ b/Bagnon/components/frame.lua @@ -846,7 +846,11 @@ function Frame:PlaceSortBtn() if self:HasSortBtn() then local toggle = self:GetSortBtn() or self:CreateSortBtn() toggle:ClearAllPoints() - toggle:SetPoint('TOPRIGHT', self, 'TOPRIGHT', -58, -8) + if self:HasOptionsToggle() then + toggle:SetPoint('TOPRIGHT', self, 'TOPRIGHT', -57, -8) + else + toggle:SetPoint('TOPRIGHT', self, 'TOPRIGHT', -32, -8) + end toggle:Show() return toggle:GetWidth(), toggle:GetHeight()