from retail

This commit is contained in:
Bunny67
2020-07-31 18:25:12 +03:00
parent 3ad99f860a
commit fde12ef78f
3 changed files with 3 additions and 5 deletions
@@ -945,7 +945,7 @@ local function ConstructMoverSizer(parent)
frame.lineX:SetPoint("BOTTOMLEFT", UIParent, 0, v)
frame.lineX:SetPoint("BOTTOMRIGHT", UIParent, 0, v)
frame.lineX:Show()
mover.alignYFrom = ctrlDown and "CENTER" or (top >= v - 5 and top <= v + 5) and "TOP" or "BOTTOM"
mover.alignYFrom = (ctrlDown and "CENTER" or (top >= v - 5 and top <= v + 5) and "TOP" or "BOTTOM")
or (reverse and ((top >= v - 5 and top <= v + 5) and "TOP" or "BOTTOM")) -- top side first
or (not reverse and ((bottom >= v - 5 and bottom <= v + 5) and "BOTTOM" or "TOP")) -- bottom side first
mover.alignYOf = v