add resize for frameless mode