- Fixed small involuntary resizes after resizing a window.

- Fixed row creation while resizing where sometimes it was broking the last row in the window.
- Fixed frame strata after stretching the window where was setting its strata to Medium.
- Fixed Vanguard strata where it wasn't following the strata from its host window.
This commit is contained in:
tercio
2014-06-14 15:37:15 -03:00
parent 98dafdb8fe
commit 9d7b43fba6
7 changed files with 28 additions and 16 deletions
@@ -96,6 +96,9 @@ local function CreatePluginFrames (data)
Vanguard:Start()
end
VanguardFrame:SetFrameStrata (instancia.strata)
VanguardFrame:SetFrameLevel (instancia.baseframe:GetFrameLevel()+5)
elseif (event == "REFRESH") then --> requested a refresh window
-->
@@ -121,7 +124,9 @@ local function CreatePluginFrames (data)
VanguardFrame:SetFrameLevel (instancia.baseframe:GetFrameLevel()+1)
elseif (event == "DETAILS_INSTANCE_ENDSTRETCH") then
VanguardFrame:SetFrameStrata ("MEDIUM")
local instance = Vanguard:GetInstance (Vanguard.instance_id)
VanguardFrame:SetFrameStrata (instance.strata)
VanguardFrame:SetFrameLevel (instance.baseframe:GetFrameLevel()+5)
Vanguard:OnResize()
elseif (event == "COMBAT_PLAYER_LEAVE") then --> current combat has finished