Frame:SetClampedToScreen

From Warcraft Wiki
Jump to navigation Jump to search

Prevents the frame from moving off-screen.

Frame:SetClampedToScreen(clampedToScreen)

Arguments

clampedToScreen
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