mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-30 15:40:51 +00:00
Compute bar layout options instead of tabulating pfGridmath
pfGridmath listed every exact cols x rows grid per bar size; the only live use was seeding the layout dropdown, which a divisor loop now does. Everything else that read it was unreachable: every layout option is a "cols x rows" string, so ResolveBarLayout's BarLayoutFormfactor lookup never matched, and the actionbar module resets a stored layout that isn't one before BarLayoutSize/BarButtonAnchor run, so their fallbacks never fired. BarLayoutFormfactor and env/tables.lua go with it.
This commit is contained in:
@@ -1206,8 +1206,7 @@ pfUI:RegisterModule("actionbar", function ()
|
||||
end
|
||||
|
||||
-- the stored layout is invalid, temporary fallback
|
||||
local _, _, fcols, frows = string.find(tostring(formfactor or ""), "(%d+)%s*x%s*(%d+)")
|
||||
if not ((fcols and frows) or pfGridmath[buttons][BarLayoutFormfactor(formfactor)]) then
|
||||
if not fcols2 or not frows2 then
|
||||
formfactor = BarLayoutOptions(buttons)[1]
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user