better handling android browser resize bug