YUI Menu rendering below "fold" on first open

Posted by Flash84x on Stack Overflow See other posts from Stack Overflow or by Flash84x
Published on 2010-03-22T20:13:16Z Indexed on 2010/03/23 0:11 UTC
Read the original article Hit count: 666

Filed under:
|
|

I have a YUI menu on the bottom navigation of the screen which creates a large white space beneath it where the action list would be rendered if visible...

On the first click the menu will render in that white space which requires the user to scroll to see it... on the second click however it will draw upward (ideally) so that the user does not have to scroll to see the menu... the second click also kills that block of white space...

i found adding a style of display:none to the div kills the white space... but then YUI doesn't set the display to block, which from what I understood it should... so I wrote another method that would do that manually... but the same behavior happens, the menu first renders below the fold requiring the user to scroll.... 2nd time its works fine... some reason the top/left positions are not being calculated properly on the first click and i cannot seem to figure out why

© Stack Overflow or respective owner

Related posts about yui-menu

Related posts about yui