Frame:SetResizeBounds

From Warcraft Wiki
Jump to navigation Jump to search

Sets the minimum and maximum size of the frame for user resizing.

Frame:SetResizeBounds(minWidth, minHeight [, maxWidth, maxHeight])

Arguments

minWidth
number - Needs to be at least 0
minHeight
number - Needs to be at least 0
maxWidth
number?
maxHeight
number?

Example

Sets the maximum size of a frame.

myFrame:SetResizeBounds(0, 0, 400, 400)

Patch changes

Dragonflight Patch 10.0.0 (2022-10-25): Added; replaces Frame:SetMinResize, Frame:SetMaxResize