from retail
This commit is contained in:
@@ -1365,12 +1365,15 @@ local function modify(parent, region, data)
|
||||
end
|
||||
controlPoint:SetWidth(regionData.dimensions.width)
|
||||
controlPoint:SetHeight(regionData.dimensions.height)
|
||||
if (data.anchorFrameParent
|
||||
or data.anchorFrameParent == nil)
|
||||
if (data.anchorFrameParent or data.anchorFrameParent == nil)
|
||||
and (data.useAnchorPerUnit
|
||||
or (
|
||||
not data.useAnchorPerUnit
|
||||
and not (data.anchorFrameType == "SCREEN"
|
||||
or data.anchorFrameType == "UIPARENT"
|
||||
or data.anchorFrameType == "MOUSE")
|
||||
and not data.useAnchorPerUnit then
|
||||
))
|
||||
then
|
||||
controlPoint:SetParent(frame == "" and self.relativeTo or frame)
|
||||
else
|
||||
controlPoint:SetParent(self)
|
||||
|
||||
Reference in New Issue
Block a user