resize editor after shown from hidden