added minWidth and minHeight

added minWidth and minHeight on resize