Frame:SetClampRectInsets broken?
Where a frame is moveable and clamped to screen, Frame:SetClampRectInsets(left, right, top, bottom) should control how close the frame can get to the edge of the screen.
Previously, to prevent the frame from getting closer than, say, 50 pixels from the screen edge, you would use Frame:SetClampRectInsets(-50, 50, 50, -50)
However it no longer seems to be working, or at least not working as before. The frame can be moved exactly to the edge of the screen, no more, no less, just as if all the Inset values were 0.
Does anyone know if something has changed, or even if there is a workaround?
Note that Frame:GetClampRectInsets() returns the expected/correct values, so the function call does do something.
|