Restricted resize event to only when open