Fixed android to use onresize instead of onorientationchange