copying resizeStyle