Skip to content

Commit

Permalink
Merge pull request #724 from Flamanis/JustifyV-fix
Browse files Browse the repository at this point in the history
Use middle on all justifyV
  • Loading branch information
Tercioo authored May 7, 2024
2 parents 22177dc + b1877af commit f709c2e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 1 addition & 5 deletions Libs/DF/textentry.lua
Original file line number Diff line number Diff line change
Expand Up @@ -461,11 +461,7 @@ detailsFramework.TextEntryCounter = detailsFramework.TextEntryCounter or 1
end

self:SetJustifyH("left")
if detailsFramework.IsCataWow() then
self:SetJustifyV("middle")
else
self:SetJustifyV("center")
end
self:SetJustifyV("middle")
self:SetTextInsets(18, 14, 0, 0)

local magnifyingGlassTexture = self:CreateTexture(nil, "OVERLAY")
Expand Down
4 changes: 2 additions & 2 deletions frames/window_breakdown/window_playerbreakdown_compare.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1776,7 +1776,7 @@ local compare_create = function(tab, frame)
noPLayersToShow:SetText("There's no more players to compare (with the same class/spec)")
noPLayersToShow:SetSize(spell_compare_frame_width[2] - 10, spell_compare_frame_height)
noPLayersToShow:SetJustifyH("center")
noPLayersToShow:SetJustifyV ("center")
noPLayersToShow:SetJustifyV ("middle")
Details.gump:SetFontSize(noPLayersToShow, 14)
Details.gump:SetFontColor(noPLayersToShow, "gray")
frame2.NoPLayersToShow = noPLayersToShow
Expand Down Expand Up @@ -1840,7 +1840,7 @@ local compare_create = function(tab, frame)
noPLayersToShow:SetText("There's no more players to compare (with the same class/spec)")
noPLayersToShow:SetSize(spell_compare_frame_width[2] - 10, spell_compare_frame_height)
noPLayersToShow:SetJustifyH("center")
noPLayersToShow:SetJustifyV ("center")
noPLayersToShow:SetJustifyV ("middle")
Details.gump:SetFontSize(noPLayersToShow, 14)
Details.gump:SetFontColor(noPLayersToShow, "gray")
frame3.NoPLayersToShow = noPLayersToShow
Expand Down

0 comments on commit f709c2e

Please sign in to comment.