Wowpedia
Advertisement
Wowpedia
240,442
pages

Prevents a Frame from moving off-screen.

Frame:SetClampedToScreen(clamped)

Arguments

clamped 
boolean - True to enable clamping, false to permit moving off-screen.

Details

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

See also

Advertisement