I’m using the Navigationbar inside a div which in the beginning is hidden (display: none). This causes the widget to behave incorrectly when I make the div visible again, with some of its elements not being displayed, the arrow not aligned correctly, etc.
If I make that div visible since the beginning, or if I hide it when the onLoad function on the body tag is executed only, then everything works fine.
Is there a workaround? For example a method which forces the widget to be re-rendered (I could call it as soon as I make the div visible again).