View Single Post
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