add edgeInsets support when resizing.