Safari javascript screen redraw problem

Discussion in 'Web Design and Development' started by stoid, Aug 21, 2007.

  1. stoid macrumors 601

    stoid

    Joined:
    Feb 17, 2002
    Location:
    So long, and thanks for all the fish!
    #1
    example

    I'm having problems with Safari not redrawing a portion of the window correctly. I have a series of divs for navigation across the top of the page, and the selected div is changed by a javascript function called when the link is clicked. When a second link is clicked, the white area not replaced by the receding div is left behind as an ugly looking artifact. Changing to another tab and back, or resizing the window gets Safari to redraw properly. I've tried adding a javascript routine that resizes the window a pixel smaller, then a pixel larger, and this fixes Safari, but reeks havok with maximized windows in Firefox IE. Anyone else experienced/solved this problem?
     
  2. stoid thread starter macrumors 601

    stoid

    Joined:
    Feb 17, 2002
    Location:
    So long, and thanks for all the fish!
    #2
    fixed!

    I added a line to change the height of the navigation container div (does nothing visually in any browser), and that fixes Safari's reluctance to redraw that portion of the screen.
     

Share This Page