Add WorldFrame and UIParent to the list of frames to snap to and tweak sticky code

This commit is contained in:
Hendrik Leppkes
2008-09-05 11:10:17 +02:00
parent 93ad42385c
commit b457d056bb
2 changed files with 11 additions and 8 deletions
+2 -1
View File
@@ -134,7 +134,8 @@ function StickyFrames:GetUpdateFunc(frame, frameList, xoffset, yoffset, left, to
frame:SetPoint("CENTER", UIParent, "BOTTOMLEFT", x+xoffset, y+yoffset)
StickyFrames.sticky[frame] = nil
for k,v in pairs(frameList) do
for i = 1, #frameList do
local v = frameList[i]
if frame ~= v and not IsShiftKeyDown() and v:IsVisible() then
if self:SnapFrame(frame, v, left, top, right, bottom) then
StickyFrames.sticky[frame] = v