fixed sample browser resize bug