It's not men's height (if short) making them unattractive to majority of women. It's overall looks.

This could be said about women but reversed. I hear many men saying "height" is one of the major factors for straight women's choice of partners.

For a small part, it may be. And online trolls, we don't count them.

It's mostly looks. Height is considered maybe when your looks are already average or below average conventionally attractive or simply not their type.

Zac Efron, James McAvoy, Daniel Radcliffe, Tom Cruise, Michael J Fox, Robert Downey Jr, Tom Holland, Bruno Mars, Felix (KPOP idol) are examples of attractive males and their height is never a problem because most of them appeal to women.

I know a handful of short attractive men who get a lot of female attention. Usually, when someone rejects you because of "height" they just don't find your overrall looks attractive and I may sound rude but it's a coping mechanism most of times you don't want to consider yourself ugly. Same could be said for tall women. Trust me nobody would reject a supermodel woman because she was taller.