Links |
---|
Prevents a Frame from moving off-screen.
Frame:SetClampedToScreen(clamped)
Arguments
- clamped
- boolean - True to enable clamping, false to permit moving off-screen.
Details
- Frame:SetClampRectInsets() defines padding within/beyond the screen edges.
- Overrides placement by any of the following:
- Any calls to Region:SetPoint()
- User dragging after Frame:StartMoving()
- User resizing after Frame:StartSizing()
Example
Despite calling SetPoint() toward 100 pixels beyond the left screen edge, the SpellBookFrame remains fully visible on the screen:
SpellBookFrame:Show()
SpellBookFrame:SetClampedToScreen(true)
SpellBookFrame:SetPoint("TOPLEFT", UIParent, "TOPLEFT", -100, 0)
Patch changes
Patch 1.11.0 (2006-06-19): Added.