WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   PTR General Discussion (https://www.wowinterface.com/forums/forumdisplay.php?f=172)
-   -   Limit a frame during resizing? - exit SetMinResize() (https://www.wowinterface.com/forums/showthread.php?t=59230)

Zax 09-21-22 05:49 AM

Limit a frame during resizing? - exit SetMinResize()
 
As the frame:SetMinResize() and frame:SetMaxResize() non longer exist, is there a way to manage a frame live resizing, in order to limit its height for example?

I used to use:
Lua Code:
  1. resizeBtn:SetScript("OnMouseDown", function(self, mouse) -- resizeBtn is handler at the bottom of the parentFrame to resize
  2.         if (mouse == "LeftButton" and not parentFrame.isResizing) then
  3.             parentFrame.isResizing = true
  4.             parentFrame:StartSizing("BOTTOM")
  5.         end
  6.     end)
This worked fine in WoW 9.0 if parentFrame:SetMinResize() was added at the frame creation.

MuffinManKen 10-05-22 02:03 PM

Maybe Frame:SetResizeBounds is what you want.

Fizzlemizz 10-05-22 05:08 PM

For information on 10.x changed see

Zax 10-07-22 07:46 AM

Quote:

Originally Posted by MuffinManKen (Post 341173)
Maybe Frame:SetResizeBounds is what you want.

Yes ! Thank you. :)


All times are GMT -6. The time now is 02:57 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI