View Single Post
12-11-14, 01:43 AM   #53
groin
A Cyclonian
AddOn Compiler - Click to view compilations
Join Date: Nov 2008
Posts: 45
It happened in bg, every time i was in combat the layout changed back to horizontal so was over action bar, casting bar ecc
Maybe is there some forced configuration in the real ui code

maybe this?

-- nil or false for vertical
function GridLayoutHeaderClass.prototype:SetOrientation(horizontal)
if not self.initialConfigFunction then return end
local settings = Grid2Layout.db.profile
local vertical = not horizontal
local point = anchorPoints[not vertical][settings.groupAnchor]
local direction = anchorPoints[point]
local xOffset = horizontal and settings.Padding*direction or 0
local yOffset = vertical and settings.Padding*direction or 0
self:SetLayoutAttribute( "xOffset", xOffset )
self:SetLayoutAttribute( "yOffset", yOffset )
self:SetLayoutAttribute( "point", point )
-- AceDB defaults
Grid2Layout.defaultDB = {
profile = {
debug = false,
FrameDisplay = "Always",
layouts = {
solo = "Solo w/Pet",
party = "By Group 5 w/Pets",
raid10 = "By Group 10 w/Pets",
raid15 = "By Group 15 w/Pets",
raid20 = "By Group 20",
raid25 = "By Group 25 w/Pets",
raid30 = "By Group 30",
raid40 = "By Group 40",
arena = "By Group 5 w/Pets",
},
layoutScales= {},
horizontal = true,

.....

Last edited by groin : 12-11-14 at 01:48 AM.
  Reply With Quote