DEV Community

[Comment from a deleted post]
Collapse
 
moopet profile image
Ben Sinclair

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 :)