Add ability to configure bordersize for panels.

Mere [06-26-13 - 00:19]
Add ability to configure bordersize for panels.
Filename
ConfigUI_Layouts.lua
diff --git a/ConfigUI_Layouts.lua b/ConfigUI_Layouts.lua
index 35ac87c..73677bc 100644
--- a/ConfigUI_Layouts.lua
+++ b/ConfigUI_Layouts.lua
@@ -486,6 +486,12 @@ function MereHealingFrames.Config.UI.Layouts:CreatePanelSettingsTab()
     panelSettings.absorbShown:GetContent():SetLabelPos("left")

     previousFrame = panelSettings.absorbShown:GetContent()
+
+    panelSettings.borderSize = layoutMappingToUI:new()
+    panelSettings.borderSize:CreateUI("", "Panel border size:", 1, 30, panelSettings.Frame)
+    panelSettings.borderSize:GetContent():SetPoint("TOPLEFT",  previousFrame, "BOTTOMLEFT", 0, 5)
+
+    previousFrame = panelSettings.borderSize:GetContent()

 	panelSettings.healthFormattingDropdown.Event.ItemSelect = function (item, value, index) MereHealingFrames.Config.UI.Layouts.ChangePanelSetting(self, "HealthTextFormatter", index) end
 	panelSettings.manaFormattingDropdown.Event.ItemSelect = function (item, value, index) MereHealingFrames.Config.UI.Layouts.ChangePanelSetting(self, "ManaTextFormatter", index) end
@@ -515,8 +521,10 @@ function MereHealingFrames.Config.UI.Layouts:CreatePanelSettingsTab()

     panelSettings.absorbShown:SetCallback(function (layoutname, value) MereHealingFrames.Config.UI.Layouts.ChangePanelSetting(self, "absorbShown", value) end)

+    panelSettings.borderSize:SetCallback(function (layoutname, value) MereHealingFrames.Config.UI.Layouts.ChangePanelSetting(self, "borderSize", value) end)
+
     --local bottom = aboveFrame:GetBottom() + (panelSettings.BottomSlotsRuler:GetHeight() * 2)
-    panelSettings.Frame:SetHeight(previousFrame:GetBottom())
+    panelSettings.Frame:SetHeight(previousFrame:GetBottom() + 2)

     panelSettings.panelSettingsScrollView:SetPoint("TOPLEFT", panelSettings.tabFrame, "TOPLEFT", 0, 0)
     panelSettings.panelSettingsScrollView:SetPoint("BOTTOMRIGHT", panelSettings.tabFrame, "BOTTOMRIGHT", 0, 0)
@@ -562,6 +570,8 @@ function MereHealingFrames.Config.UI.Layouts:RefreshPanelSettings()
     self.panelSettings.energyFontSize:SetCurrentValue(panelSetting.EnergyFontSize, true)

     self.panelSettings.absorbShown:SetCurrentValue(panelSetting.absorbShown, true)
+
+    self.panelSettings.borderSize:SetCurrentValue(panelSetting.borderSize, true)
 	--	CallingColouredHealthBar  = false,
 end