I have an element with a flexbox
div#myFlexbox{ display:flex; }
after hide it and show it, it gets messed up.<
The show() adds display:block as a default for div. You can change the display to flex using jQuery css():
show()
display:block
div
display
flex
css()
$('#myFlexbox').css('display', 'flex');