Quantcast

Update LibJostle

James Whitehead II [10-05-12 - 08:06]
Update LibJostle
Filename
Libs/LibJostle-3.0.lua
diff --git a/Libs/LibJostle-3.0.lua b/Libs/LibJostle-3.0.lua
index bdf465b..431c4a3 100644
--- a/Libs/LibJostle-3.0.lua
+++ b/Libs/LibJostle-3.0.lua
@@ -1,6 +1,6 @@
 --[[
 Name: LibJostle-3.0
-Revision: $Rev: 52 $
+Revision: $Rev: 57 $
 Author(s): ckknight (ckknight@gmail.com)
 Website: http://ckknight.wowinterface.com/
 Documentation: http://www.wowace.com/addons/libjostle-3-0/
@@ -10,7 +10,7 @@ License: LGPL v2.1
 --]]

 local MAJOR_VERSION = "LibJostle-3.0"
-local MINOR_VERSION = tonumber(("$Revision: 52 $"):match("(%d+)")) + 90000
+local MINOR_VERSION = tonumber(("$Revision: 57 $"):match("(%d+)")) + 90000

 if not LibStub then error(MAJOR_VERSION .. " requires LibStub") end

@@ -427,8 +427,8 @@ function Jostle:Refresh(...)
 						offset = offset - TicketStatusFrame:GetHeight() * TicketStatusFrame:GetScale()
 					elseif frame == DEFAULT_CHAT_FRAME then
 						y = MainMenuBar:GetHeight() * MainMenuBar:GetScale() + 32
-						if PetActionBarFrame:IsShown() or ShapeshiftBarFrame:IsShown() then
-							offset = offset + ShapeshiftBarFrame:GetHeight() * ShapeshiftBarFrame:GetScale()
+						if StanceBarFrame and (PetActionBarFrame:IsShown() or StanceBarFrame:IsShown()) then
+							offset = offset + StanceBarFrame:GetHeight() * StanceBarFrame:GetScale()
 						end
 						if MultiBarBottomLeft:IsShown() then
 							offset = offset + MultiBarBottomLeft:GetHeight() * MultiBarBottomLeft:GetScale() - 21
@@ -440,8 +440,8 @@ function Jostle:Refresh(...)
 						end
 					elseif frame == CastingBarFrame then
 						y = MainMenuBar:GetHeight() * MainMenuBar:GetScale() + 17
-						if PetActionBarFrame:IsShown() or ShapeshiftBarFrame:IsShown() then
-							offset = offset + ShapeshiftBarFrame:GetHeight() * ShapeshiftBarFrame:GetScale()
+						if StanceBarFrame and (PetActionBarFrame:IsShown() or StanceBarFrame:IsShown()) then
+							offset = offset + StanceBarFrame:GetHeight() * StanceBarFrame:GetScale()
 						end
 						if MultiBarBottomLeft:IsShown() or MultiBarBottomRight:IsShown() then
 							offset = offset + MultiBarBottomLeft:GetHeight() * MultiBarBottomLeft:GetScale()