From 078588cc0fcd79160ac6663a426238aac32f7685 Mon Sep 17 00:00:00 2001 From: Kenny Shields Date: Sat, 13 Sep 2014 11:55:41 -0400 Subject: [PATCH] Add frame:SetMinSize and frame:GetMinSize --- objects/frame.lua | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/objects/frame.lua b/objects/frame.lua index 27aae61..ad2a412 100644 --- a/objects/frame.lua +++ b/objects/frame.lua @@ -1083,6 +1083,28 @@ function newobject:GetMaxHeight() end +--[[--------------------------------------------------------- + - func: SetMinSize(width, height) + - desc: sets the object's minimum size +--]]--------------------------------------------------------- +function newobject:SetMinSize(width, height) + + self.minwidth = width + self.minheight = height + return self + +end + +--[[--------------------------------------------------------- + - func: GetMinSize() + - desc: gets the object's minimum size +--]]--------------------------------------------------------- +function newobject:GetMinSize() + + return self.minwidth, self.maxwidth + +end + --[[--------------------------------------------------------- - func: SetAlwaysOnTop(bool) - desc: sets whether or not a frame should always be