Setting a widgets max/min size when resizing a window

Is there anyway to set a max/min size on a widget when resizing the application window?

Ideally i would like to apply this to a widget.newButton and a display.newRect

solved by using math.min(n,n) within the width, height parameters

solved by using math.min(n,n) within the width, height parameters