Skip to content

Commit

Permalink
Adjusted top panel size when using custom font size.
Browse files Browse the repository at this point in the history
  • Loading branch information
Wetxius committed Aug 4, 2020
1 parent d593885 commit bc4a3bc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions ShestakUI/Core/Panels.lua
Expand Up @@ -132,6 +132,9 @@ end
----------------------------------------------------------------------------------------
if C.toppanel.enable ~= true then return end

C.toppanel.height = C.toppanel.height + ((C.font.stats_font_size - 8) * 7)
C.toppanel.width = C.toppanel.width + (C.font.stats_font_size - 8)

local toppanelanchor = CreateFrame("Frame", "TopPanelAnchor", T_PetBattleFrameHider)
toppanelanchor:SetPoint(unpack(C.position.top_panel))
toppanelanchor:SetSize(C.toppanel.width, C.toppanel.height / 2)
Expand Down
4 changes: 2 additions & 2 deletions ShestakUI_Config/Options.lua
Expand Up @@ -1775,10 +1775,10 @@ do
local mouseover = ns.CreateCheckBox(parent, "mouseover", L_GUI_TOP_PANEL_MOUSE)
mouseover:SetPoint("TOPLEFT", enable, "BOTTOMLEFT", 0, 0)

local height = ns.CreateNumberSlider(parent, "height", nil, nil, 0, 100, 1, true, L_GUI_TOP_PANEL_HEIGHT)
local height = ns.CreateNumberSlider(parent, "height", nil, nil, 40, 150, 1, true, L_GUI_TOP_PANEL_HEIGHT)
height:SetPoint("TOPLEFT", mouseover, "BOTTOMLEFT", 0, -20)

local width = ns.CreateNumberSlider(parent, "width", nil, nil, 0, 400, 1, true, L_GUI_TOP_PANEL_WIDTH)
local width = ns.CreateNumberSlider(parent, "width", nil, nil, 100, 500, 1, true, L_GUI_TOP_PANEL_WIDTH)
width:SetPoint("TOPLEFT", height, "BOTTOMLEFT", 0, -20)
end

Expand Down

0 comments on commit bc4a3bc

Please sign in to comment.