Widget API: Frame:SetUserPlaced

Revision as of 04:45, 15 August 2023 by Move page script (talk | contribs) (Move page script moved page API Frame SetUserPlaced to API Frame SetUserPlaced without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Widget API ← Frame < SetUserPlaced

Sets whether a frame has been moved by the user (and will thus be saved in the layout cache).

frame:SetUserPlaced(isUserPlaced);

ArgumentsEdit

isUserPlaced
Boolean - true if the frame has been moved by the user, false if not

NotesEdit

  • There is usually no need to explicitly call this function; the flag is automatically set by Frame:StartMoving(), and when the frame's position is restored from the layout cache.
  • Positions of anonymous frames (frames without a name) will not be restored.
  • Only frames created prior to the completion of the initial loading process will have their position restored.

Also SeeEdit