I've been a professional C, Perl, PHP and Python developer.
I'm an ex-sysadmin from the late 20th century.
These days I do more Javascript and CSS and whatnot, and promote UX and accessibility.
Maybe you could hide the wrapped element then set its width ever-larger until it's all on one line, thereby finding out the breakpoint for this particular menu regardless of how it's filled. Then on window resize add the class dependent on this saved breakpoint size.
Maybe that's overkill also :)
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Maybe you could hide the wrapped element then set its width ever-larger until it's all on one line, thereby finding out the breakpoint for this particular menu regardless of how it's filled. Then on window resize add the class dependent on this saved breakpoint size.
Maybe that's overkill also :)