fix editor auto resize bug