Reformat & fix resize behavior