Skip to content

Commit

Permalink
- prevent recalculating size of tip on tip content "unknownOnCleared"…
Browse files Browse the repository at this point in the history
… to prevent accidentally reducing tip's width/height to a tiny square e.g. on individual GameTooltips with tip:ClearLines()
  • Loading branch information
frozn committed May 20, 2024
1 parent 39950fa commit eb32c99
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion TipTac/ttCore.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1744,7 +1744,9 @@ function tt:SetCurrentDisplayParams(tip, tipContent)
LibFroznFunctions:FireGroupEvent(MOD_NAME, "OnTipSetStyling", TT_CacheForFrames, tip, currentDisplayParams, tipContent);

-- recalculate size of tip to ensure that it has the correct dimensions
LibFroznFunctions:RecalculateSizeOfGameTooltip(tip);
if (tipContent ~= TT_TIP_CONTENT.unknownOnCleared) then -- prevent recalculating size of tip on tip content "unknownOnCleared" to prevent accidentally reducing tip's width/height to a tiny square e.g. on individual GameTooltips with tip:ClearLines(). test case: addon "Titan Panel" with broker addon "Profession Cooldown".
LibFroznFunctions:RecalculateSizeOfGameTooltip(tip);
end
end

-- reset tip's current display parameters
Expand Down

0 comments on commit eb32c99

Please sign in to comment.