styles updated
This commit is contained in:
+5
-5
@@ -84,7 +84,7 @@ function BankFrame:DisplayItems(bankData, isOtherChar, charName)
|
||||
local row = 0
|
||||
local col = 0
|
||||
local buttonSize = addon.Modules.DB:GetSetting("iconSize") or addon.Constants.BUTTON_SIZE
|
||||
local spacing = addon.Constants.BUTTON_SPACING
|
||||
local spacing = addon.Modules.DB:GetSetting("iconSpacing") or addon.Constants.BUTTON_SPACING
|
||||
local perRow = addon.Modules.DB:GetSetting("bankColumns") or 15
|
||||
local itemContainer = getglobal("Guda_BankFrame_ItemContainer")
|
||||
|
||||
@@ -121,7 +121,7 @@ end
|
||||
-- Resize bank frame based on number of rows and columns
|
||||
function BankFrame:ResizeFrame(currentRow, currentCol, columns)
|
||||
local buttonSize = addon.Modules.DB:GetSetting("iconSize") or addon.Constants.BUTTON_SIZE
|
||||
local spacing = addon.Constants.BUTTON_SPACING
|
||||
local spacing = addon.Modules.DB:GetSetting("iconSpacing") or addon.Constants.BUTTON_SPACING
|
||||
|
||||
-- Calculate actual number of rows used
|
||||
local totalRows = currentRow + 1
|
||||
@@ -138,7 +138,7 @@ function BankFrame:ResizeFrame(currentRow, currentCol, columns)
|
||||
local containerWidth = (columns * (buttonSize + spacing)) + 20
|
||||
local containerHeight = (totalRows * (buttonSize + spacing)) + 20
|
||||
local frameWidth = containerWidth + 30
|
||||
local frameHeight = containerHeight + 120
|
||||
local frameHeight = containerHeight + 100 -- Title (40) + search (30) + footer (30)
|
||||
|
||||
-- Minimum sizes
|
||||
if containerWidth < 200 then
|
||||
@@ -148,8 +148,8 @@ function BankFrame:ResizeFrame(currentRow, currentCol, columns)
|
||||
if containerHeight < 150 then
|
||||
containerHeight = 150
|
||||
end
|
||||
if frameHeight < 350 then
|
||||
frameHeight = 350
|
||||
if frameHeight < 250 then
|
||||
frameHeight = 250
|
||||
end
|
||||
|
||||
-- Maximum sizes
|
||||
|
||||
Reference in New Issue
Block a user