flag can only be resized within window size