Skip to content

Commit

Permalink
Fix info panel positioning
Browse files Browse the repository at this point in the history
  • Loading branch information
xmyno committed Oct 28, 2020
1 parent 308a3fb commit c3c6007
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion WorldQuests.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1433,6 +1433,7 @@ end
function BWQ:UpdateBlock()
offsetTop = -35 -- initial padding from top

BWQ:UpdateInfoPanel()
if not BWQ:WorldQuestsUnlocked() then
BWQ:SetHeight(offsetTop * -1 + 20 + 30) -- padding + errorFS height
BWQ:SetWidth(math.max(BWQ.factionDisplay:GetWidth(), BWQ.errorFS:GetWidth()) + 20)
Expand All @@ -1447,7 +1448,7 @@ function BWQ:UpdateBlock()
return
end

BWQ:UpdateInfoPanel()


local titleMaxWidth, bountyMaxWidth, factionMaxWidth, rewardMaxWidth, timeLeftMaxWidth = 0, 0, 0, 0, 0
for mapId in next, MAP_ZONES[expansion] do
Expand Down

0 comments on commit c3c6007

Please sign in to comment.