Skip to content

Commit

Permalink
Merge pull request #378 from Lethalix/classic-era
Browse files Browse the repository at this point in the history
[classic-era] Cherry-pick: Use "MIDDLE" in SetJustifyV calls
  • Loading branch information
shirsig authored Jul 10, 2024
2 parents 48b2324 + 07ab735 commit 24a50e4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gui/auction_listing.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1067,7 +1067,7 @@ function M.new(parent, rows, columns)
cell.text = text
text:SetFont(gui.font, min(14, rt.ROW_HEIGHT))
text:SetJustifyH(column.align or 'LEFT')
text:SetJustifyV('CENTER')
text:SetJustifyV('MIDDLE')
text:SetPoint('TOPLEFT', 1, -1)
text:SetPoint('BOTTOMRIGHT', -1, 1)
cell:SetHeight(rt.ROW_HEIGHT)
Expand Down
4 changes: 2 additions & 2 deletions gui/core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function M.button(parent, text_height)
label:SetFont(font, text_height)
label:SetAllPoints(button)
label:SetJustifyH('CENTER')
label:SetJustifyV('CENTER')
label:SetJustifyV('MIDDLE')
label:SetTextColor(aux.color.text.enabled())
button:SetFontString(label)

Expand Down Expand Up @@ -135,7 +135,7 @@ do
tab.text = tab:CreateFontString()
tab.text:SetAllPoints()
tab.text:SetJustifyH('CENTER')
tab.text:SetJustifyV('CENTER')
tab.text:SetJustifyV('MIDDLE')
tab.text:SetFont(font, font_size.large)
tab:SetFontString(tab.text)

Expand Down
2 changes: 1 addition & 1 deletion gui/listing.lua
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ local methods = {
local text = cell:CreateFontString()
cell.text = text
text:SetFont(gui.font, ROW_TEXT_SIZE)
text:SetJustifyV('CENTER')
text:SetJustifyV('MIDDLE')
text:SetPoint('TOPLEFT', 1, -1)
text:SetPoint('BOTTOMRIGHT', -1, 1)
cell:SetHeight(ROW_HEIGHT)
Expand Down

0 comments on commit 24a50e4

Please sign in to comment.