WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Frame:SetClampRectInsets broken? (https://www.wowinterface.com/forums/showthread.php?t=52002)

brykrys 02-27-15 12:57 PM

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.

dreshtv 03-01-15 06:55 AM

I'm having the save problem with my addons. Does Blizzard changed something?


All times are GMT -6. The time now is 11:24 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI