We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d9e712f commit a6f1df4Copy full SHA for a6f1df4
ClassicCastbars_Options/TestMode.lua
@@ -40,6 +40,7 @@ end
40
41
local function OnDragStop(self)
42
self:StopMovingOrSizing()
43
+ if not self.unitID then return end
44
45
-- Frame loses relativity to parent and is instead relative to UIParent after
46
-- dragging so we can't just use self:GetPoint() here
@@ -49,8 +50,8 @@ local function OnDragStop(self)
49
50
ClassicCastbars.db[unit].autoPosition = false
51
52
-- Reanchor from UIParent back to parent frame
- self:SetParent(self.parent)
53
self:ClearAllPoints()
54
+ self:SetParent(self.parent)
55
self:SetPoint("CENTER", self.parent, x, y)
56
end
57
0 commit comments