Fixes for: OpenRaidLib, Rounded Cooltip, Evoker Extra Bar and Ebon Might, Welcome Window

This commit is contained in:
Tercio Jose
2024-01-16 19:48:55 -03:00
parent 4df6df37ae
commit cf591e89fb
9 changed files with 23 additions and 13 deletions
+8
View File
@@ -3033,6 +3033,14 @@ function Details:ShowExtraStatusbar(thisLine, amount, extraAmount, totalAmount,
extraStatusbar:SetPoint("topleft", thisLine, "topleft", (statusBarWidth * percent) - fillTheGapWidth, 0)
end
--check if the extra bar will be bigger than the window
local windowWidth = instanceObject:GetSize()
local lineWidth = thisLine:GetWidth()
local maxExtraBarWidth = windowWidth - lineWidth - initialOffset
if (extraStatusbarWidth > maxExtraBarWidth) then
extraStatusbarWidth = maxExtraBarWidth
end
extraStatusbar:SetWidth(extraStatusbarWidth)
extraStatusbar:SetFrameLevel(thisLine:GetFrameLevel() + 1)