Quantcast
Frame:SetClampRectInsets broken? - WoWInterface
Thread Tools Display Modes
02-27-15, 12:57 PM   #1
brykrys
A Deviate Faerie Dragon
 
brykrys's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2006
Posts: 12
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.
  Reply With Quote
03-01-15, 06:55 AM   #2
dreshtv
A Kobold Labourer
Join Date: Mar 2013
Posts: 1
I'm having the save problem with my addons. Does Blizzard changed something?
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Frame:SetClampRectInsets broken?

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off