It might be overridden by this block of code in the file at :
https://www.townlong-yak.com/framexm...ainMenuBar.lua
Code:
function MainMenuBarMixin:OnShow()
UpdateMicroButtonsParent(MainMenuBarArtFrame);
MoveMicroButtons("BOTTOMLEFT", MicroButtonAndBagsBar, "BOTTOMLEFT", 6, 3, false);
end
I haven't found anything calling it directly but it is the only thing jumping out at me so far
Edit: D'oh just realised this is lining up the main buttons to the bag bar ...
edit 2 : This definitely looks like something that may cause problems or become a problem
Code:
function MainMenuBarMixin:ChangeMenuBarSizeAndPosition(rightMultiBarShowing)
local _, width, height;
if( rightMultiBarShowing ) then
_, width, height = GetAtlasInfo("hud-MainMenuBar-large");
self:SetSize(width,height);
MainMenuBarArtFrame:SetSize(width,height);
MainMenuBarArtFrameBackground:SetSize(width, height);
MainMenuBarArtFrameBackground.BackgroundLarge:Show();
MainMenuBarArtFrameBackground.BackgroundSmall:Hide();
MainMenuBarArtFrame.PageNumber:ClearAllPoints();
MainMenuBarArtFrame.PageNumber:SetPoint("CENTER", MainMenuBarArtFrameBackground, "CENTER", 138, -3);
else
_, width, height = GetAtlasInfo("hud-MainMenuBar-small");
self:SetSize(width,height);
MainMenuBarArtFrame:SetSize(width,height);
MainMenuBarArtFrameBackground:SetSize(width, height);
MainMenuBarArtFrameBackground.BackgroundLarge:Hide();
MainMenuBarArtFrameBackground.BackgroundSmall:Show();
MainMenuBarArtFrame.PageNumber:ClearAllPoints();
MainMenuBarArtFrame.PageNumber:SetPoint("RIGHT", MainMenuBarArtFrameBackground, "RIGHT", -6, -3);
end
local scale = 1;
self:SetScale(scale);
self:SetPoint("BOTTOM");
local rightGryphon = MainMenuBarArtFrame.RightEndCap:GetRight();
local xOffset = 0;
if (rightGryphon > MicroButtonAndBagsBar:GetLeft()) then
xOffset = rightGryphon - MicroButtonAndBagsBar:GetLeft();
local newLeft = MainMenuBarArtFrame:GetLeft() - xOffset;
if (newLeft < 0) then
local barRight = MainMenuBarArtFrame:GetRight();
if (barRight > MicroButtonAndBagsBar:GetLeft()) then
xOffset = barRight - MicroButtonAndBagsBar:GetLeft();
newLeft = MainMenuBarArtFrame:GetLeft() - xOffset;
end
end
if (newLeft < 0) then
local xOffsetAdjustment = 8;
if (UIParent:GetScale() > 1) then
xOffsetAdjustment = xOffsetAdjustment + (20*UIParent:GetScale());
end
xOffset = xOffset + newLeft + xOffsetAdjustment;
local availableSpace = MicroButtonAndBagsBar:GetLeft() - 16;
scale = availableSpace / width;
end
self:SetScale(scale);
self:SetPoint("BOTTOM", UIParent, "BOTTOM", -xOffset, 0);
barRight = self:GetRight();
end
StatusTrackingBarManager:SetBarSize(rightMultiBarShowing);
end