On May 9, 12:03 am, Leanan <[email protected]> wrote:
> that's weird. The css should already be setting the width to 256. I
> suppose since I know the width of the navbar, I could just hard code
> it, instead of trying to get it dynamically, but that just seems...
> hackish, to me.
The CSS is already setting the width to 256, but it's not actually
showing anything until you put some text in it. With text of "LEFT"
for example, that line is coloured green and the width is correctly
set. It's possible that there is a timing issue in Chrome, which runs
Javascript and renders pages differently from other browsers. Once the
page is finished, $('#left_nav').width() correctly returns 256, but at
the time the script is run first (and with nothing in that div) it
definitely returns 1008.
Solution: put something in that div.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---