resize and rtl changes