Well, that was terrible from him to embarass you like this.
I would have been upset as well.
I guess you have to be ready for this kind of things being told to you and be ready to reply something when it happens.
Something with a little humor will be better
And then move on. You can't change your height but you can show an insensitive person they're being snarky.