Immersion ExtraFade

Immersion ExtraFade

169k Downloads

tried to call the protected function 'CompactRaidFrameContainer:SetHeight()

LudiusMaximus opened this issue ยท 0 comments

commented
1x [ADDON_ACTION_BLOCKED] AddOn 'PersistentWorldMap' tried to call the protected function 'CompactRaidFrameContainer:SetHeight()'.
[string "@!BugGrabber\BugGrabber.lua"]:519: in function <!BugGrabber\BugGrabber.lua:519>
[string "=[C]"]: in function `SetHeight'
[string "@Blizzard_CompactRaidFrames\Blizzard_CompactRaidFrameManager.lua"]:631: in function `CompactRaidFrameManager_ResizeFrame_UpdateContainerSize'
[string "@Blizzard_CompactRaidFrames\Blizzard_CompactRaidFrameManager.lua"]:561: in function `CompactRaidFrameManager_UpdateContainerBounds'
[string "@Blizzard_CompactRaidFrames\Blizzard_CompactRaidFrameManager.lua"]:51: in function <...mpactRaidFrames\Blizzard_CompactRaidFrameManager.lua:49>

Locals:
Skipped (In Encounter)

Seems to be triggered by
Blizzard_CompactRaidFrameManager.lua:

function CompactRaidFrameManager_OnEvent(self, event, ...)           -- Line 49  <---------
	if ( event == "DISPLAY_SIZE_CHANGED" or event == "UI_SCALE_CHANGED" ) then
		CompactRaidFrameManager_UpdateContainerBounds(self);    -- Line 51  <---------
function CompactRaidFrameManager_UpdateContainerBounds(self) --Hah, "Bounds" instead of "SizeAndPosition". WHO NEEDS A THESAURUS NOW?!	
	self.containerResizeFrame:SetMaxResize(self.containerResizeFrame:GetWidth(), GetScreenHeight() - 90);
	
	if ( self.dynamicContainerPosition ) then
		--Should be below the TargetFrameSpellBar at its lowest height..
		local top = GetScreenHeight() - 135;
		--Should be just above the FriendsFrameMicroButton.
		local bottom = 330;
		
		local managerTop = self:GetTop();
		
		self.containerResizeFrame:ClearAllPoints();
		self.containerResizeFrame:SetPoint("TOPLEFT", self, "TOPRIGHT", 0, top - managerTop);
		self.containerResizeFrame:SetHeight(top - bottom);
		
		CompactRaidFrameManager_ResizeFrame_UpdateContainerSize(self);   -- Line 561  <---------
	end
end
function CompactRaidFrameManager_ResizeFrame_UpdateContainerSize(manager)
	--If we're flow style, we want to make sure we exactly fit N frames.
	local keepGroupsTogether = CompactRaidFrameManager_GetSetting("KeepGroupsTogether");
	if ( keepGroupsTogether ~= "1" ) then
		local unitFrameHeight = DefaultCompactUnitFrameSetupOptions.height;
		local resizerHeight = manager.containerResizeFrame:GetHeight() - RESIZE_VERTICAL_OUTSETS * 2;
		local newHeight = unitFrameHeight * floor(resizerHeight / unitFrameHeight);
		manager.container:SetHeight(newHeight);    -- Line 631  <---------

I guess CompactRaidFrameManager has to be shown and then you resize your WoW window during combat...?