2 Replies - 609 Views - Last Post: 09 August 2012 - 06:24 PM

#1 sroberts209  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 09-August 12

resizing the window causes problems

Posted 09 August 2012 - 05:26 PM

hi there!

I'm paying someone to develop a site for me, and there's a problem that he says he can't fix. I'm hoping someone can tell me if he's right.

Here's the site so far:

http://kristinbye.go-jsg.com/?cat=11

if you resize the window, the scrolling nav bar moves below the text. No! He says the use just needs to refresh the window .. but that seems like a bad fix.

Does anyone know why this is happening? The site was built on Wordpress.
Thanks!

Is This A Good Question/Topic? 0
  • +

Replies To: resizing the window causes problems

#2 Atli  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 3044
  • View blog
  • Posts: 4,556
  • Joined: 08-June 10

Re: resizing the window causes problems

Posted 09 August 2012 - 06:12 PM

Hey.

As far as I can see, he's wrong.

I haven't examined the whole code line for line, but it appears that the reason it's moving below the text is because the container for the text has been floated left, so that the scroll-pane can be positioned to it's right, and both elements have been given absolute widths to fill out the screen. When the screen is re-sized, those absolute widths no longer fit, which is why the browser forces the scroll-pane back below the text.

I can think of at least two fixes. First, and most natural, would be to edit the CSS so that the elements would fit the window no matter it's size. However, it's possible that whatever Javascript code is controlling the scroll-pane requires an absolute width, and in that case you'd have to use Javascript to look out for window resize events, and adjust the widths of the elements when those happen.
Was This Post Helpful? 0
  • +
  • -

#3 sroberts209  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 09-August 12

Re: resizing the window causes problems

Posted 09 August 2012 - 06:24 PM

thanks! ... I thought there would be a fix somehow. I'll see what my guy has to say about your suggestions. Thanks again!
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1