tkahn/jquery-responsive-headlines

Hidden DIV onload causing issue when shown?

Closed this issue · 1 comments

(updated) I have a single page with multiple li being hidden and shown for my pages. Because the divs are hidden on initialize the smooth scroll misbehaves. I finally restyled the scrollable area to display things correctly but the hotspots are layered behind even with z-index set. But if I refresh the page while that div is displayed then it works. What would be a good redraw method for when the pages are changed and the div is shown?

One problem was a secondary nested div to force width since the contained

  • wrapped when the scroll plug was initialized. By eliminating that and using a jquery function to manually resize the div again at the time of loading, it behaves better.