undo resize window masonrsonry function call