fix
Steven Jackson [07-21-14 - 00:03]
diff --git a/Interface/AddOns/SVUI/packages/dock/SVDock.lua b/Interface/AddOns/SVUI/packages/dock/SVDock.lua
index 38b5900..12087a1 100644
--- a/Interface/AddOns/SVUI/packages/dock/SVDock.lua
+++ b/Interface/AddOns/SVUI/packages/dock/SVDock.lua
@@ -140,12 +140,24 @@ CORE FUNCTIONS
##########################################################
]]--
function MOD:UpdateSuperDock()
- _G["LeftSuperDock"]:Size(MOD.db.dockLeftWidth, MOD.db.dockLeftHeight);
- _G["SuperDockAlertLeft"]:Width(MOD.db.dockLeftWidth);
- _G["SuperDockWindowLeft"]:Size(MOD.db.dockLeftWidth, MOD.db.dockLeftHeight);
- _G["RightSuperDock"]:Size(MOD.db.dockRightWidth, MOD.db.dockRightHeight);
- _G["SuperDockAlertRight"]:Width(MOD.db.dockRightWidth);
- _G["SuperDockWindowRight"]:Size(MOD.db.dockRightWidth, MOD.db.dockRightHeight);
+ local leftWidth = MOD.db.dockLeftWidth or 350;
+ local leftHeight = MOD.db.dockLeftHeight or 180;
+ local rightWidth = MOD.db.dockRightWidth or 350;
+ local rightHeight = MOD.db.dockRightHeight or 180;
+ local buttonsize = MOD.db.buttonSize or 22;
+ local spacing = MOD.db.buttonSpacing or 4;
+ local statBarWidth = (SVUI_Cache.screenwidth - (leftWidth + rightWidth)) - (SuperVillain:Scale(80))
+
+ _G["LeftSuperDock"]:Size(leftWidth, leftHeight)
+ _G["SuperDockAlertLeft"]:Width(leftWidth)
+ _G["SuperDockWindowLeft"]:Size(leftWidth, leftHeight)
+ _G["RightSuperDock"]:Size(rightWidth, rightHeight)
+ _G["SuperDockAlertRight"]:Width(rightWidth)
+ _G["SuperDockWindowRight"]:Size(rightWidth, rightHeight)
+ _G["SuperDockBottomDataAnchor"]:Size(statBarWidth - 2, buttonsize - 8)
+ _G["BottomLeftDataPanel"]:Size((statBarWidth * 0.5) - 1, buttonsize - 8)
+ _G["BottomRightDataPanel"]:Size((statBarWidth * 0.5) - 1, buttonsize - 8)
+
MOD:BottomPanelVisibility();
MOD:TopPanelVisibility();
MOD:UpdateDockBackdrops();
@@ -256,6 +268,7 @@ function MOD:CreateDockPanels()
local rightHeight = MOD.db.dockRightHeight or 180;
local buttonsize = MOD.db.buttonSize or 22;
local spacing = MOD.db.buttonSpacing or 4;
+ local statBarWidth = (SVUI_Cache.screenwidth - (leftWidth + rightWidth)) - (SuperVillain:Scale(80))
local STATS = SuperVillain.Registry:Expose("SVStats");
-- [[ CORNER BUTTON ]] --
@@ -380,17 +393,17 @@ function MOD:CreateDockPanels()
--BOTTOM STAT HOLDERS
local bottomanchor = CreateFrame("Frame", "SuperDockBottomDataAnchor", SuperVillain.UIParent)
- bottomanchor:Size((leftWidth + rightWidth) - 2, buttonsize - 8)
+ bottomanchor:Size(statBarWidth - 2, buttonsize - 8)
bottomanchor:Point("BOTTOM", SuperVillain.UIParent, "BOTTOM", 0, 2)
SuperVillain:AddToDisplayAudit(bottomanchor)
local bottomleftdata = CreateFrame("Frame", "BottomLeftDataPanel", bottomanchor)
- bottomleftdata:Size(leftWidth - 1, buttonsize - 8)
+ bottomleftdata:Size((statBarWidth * 0.5) - 1, buttonsize - 8)
bottomleftdata:Point("LEFT", bottomanchor, "LEFT", 0, 0)
STATS:NewAnchor(bottomleftdata, 3, "ANCHOR_CURSOR")
local bottomrightdata = CreateFrame("Frame", "BottomRightDataPanel", bottomanchor)
- bottomrightdata:Size(rightWidth - 1, buttonsize - 8)
+ bottomrightdata:Size((statBarWidth * 0.5) - 1, buttonsize - 8)
bottomrightdata:Point("RIGHT", bottomanchor, "RIGHT", 0, 0)
STATS:NewAnchor(bottomrightdata, 3, "ANCHOR_CURSOR")
end