Thread Tools Display Modes
09-21-22, 05:49 AM   #1
Zax
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Aug 2006
Posts: 147
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.
__________________
Zax - Addons List, not all maintained.
  Reply With Quote
10-05-22, 02:03 PM   #2
MuffinManKen
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 106
Maybe Frame:SetResizeBounds is what you want.
  Reply With Quote
10-05-22, 05:08 PM   #3
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,834
For information on 10.x changed see
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.
  Reply With Quote
10-07-22, 07:46 AM   #4
Zax
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Aug 2006
Posts: 147
Originally Posted by MuffinManKen View Post
Maybe Frame:SetResizeBounds is what you want.
Yes ! Thank you.
__________________
Zax - Addons List, not all maintained.
  Reply With Quote

WoWInterface » PTR » PTR General Discussion » Limit a frame during resizing? - exit SetMinResize()

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off