Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Other Discussions
  3. Site Bugs / Suggestions
  4. New layout problem [modified]

New layout problem [modified]

Scheduled Pinned Locked Moved Site Bugs / Suggestions
questionhtmlcomtoolshelp
6 Posts 5 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    Hans Dietrich
    wrote on last edited by
    #1

    Problem: opening a child post will be displayed off the top of the window if the parent post is not entirely visible. Steps:

    1. Open up this post: http://www.codeproject.com/Lounge.aspx?msg=2895800#xx2895800xx[^]
    2. Scroll browser window so that the start of Joan's post is above the top of the window.
    3. Click on the first child post (by Perspx). His post is displayed above the top of the window.

    Details: FF2 and IE6, Layout=Normal Ctrl-F5 hit: Yes

    Best wishes, Hans


    [CodeProject Forum Guidelines] [How To Ask A Question] [My Articles]

    modified on Sunday, January 25, 2009 1:13 PM

    A S C 3 Replies Last reply
    0
    • H Hans Dietrich

      Problem: opening a child post will be displayed off the top of the window if the parent post is not entirely visible. Steps:

      1. Open up this post: http://www.codeproject.com/Lounge.aspx?msg=2895800#xx2895800xx[^]
      2. Scroll browser window so that the start of Joan's post is above the top of the window.
      3. Click on the first child post (by Perspx). His post is displayed above the top of the window.

      Details: FF2 and IE6, Layout=Normal Ctrl-F5 hit: Yes

      Best wishes, Hans


      [CodeProject Forum Guidelines] [How To Ask A Question] [My Articles]

      modified on Sunday, January 25, 2009 1:13 PM

      A Offline
      A Offline
      Alan N
      wrote on last edited by
      #2

      I see this too. I'm using IE6, XP, display 1400 x 1050 and 144 dpi. Alan N.

      C 1 Reply Last reply
      0
      • H Hans Dietrich

        Problem: opening a child post will be displayed off the top of the window if the parent post is not entirely visible. Steps:

        1. Open up this post: http://www.codeproject.com/Lounge.aspx?msg=2895800#xx2895800xx[^]
        2. Scroll browser window so that the start of Joan's post is above the top of the window.
        3. Click on the first child post (by Perspx). His post is displayed above the top of the window.

        Details: FF2 and IE6, Layout=Normal Ctrl-F5 hit: Yes

        Best wishes, Hans


        [CodeProject Forum Guidelines] [How To Ask A Question] [My Articles]

        modified on Sunday, January 25, 2009 1:13 PM

        S Offline
        S Offline
        Shog9 0
        wrote on last edited by
        #3

        CP is no longer rendering in Quirks Mode. Therefore, the function EnsureMessageVisible() in ShortCuts.js must be updated to work with the documentElement (rather than body) as the scroll container:

        function EnsureMessageVisible(msgID, bShowTop)
        {
           var msgHeader = document.getElementById("F" + msgID + "_h0");
           var msgBody = document.getElementById("F" + msgID + "_h1");

        if (!msgBody||!msgHeader)return;

        // determine scroll position of top and bottom
           var scrollContainer = document.documentElement;
           var top = getRealPos(msgHeader, 'Top');
           var bottom = getRealPos(msgBody, 'Top') + msgBody.offsetHeight;

        // if not already visible, scroll to make it so
           if ( scrollContainer.scrollTop > top && !bShowTop)
              scrollContainer.scrollTop = top - scrollContainer.clientHeight/10;
           if ( scrollContainer.scrollTop+scrollContainer.clientHeight < bottom)
              scrollContainer.scrollTop = bottom-scrollContainer.clientHeight;
           if ( scrollContainer.scrollTop > top && bShowTop)
              scrollContainer.scrollTop = top - scrollContainer.clientHeight/10;
        }

        (changes in bold - yes, there appears to be something of a regression WRT the message ID)

        1 Reply Last reply
        0
        • H Hans Dietrich

          Problem: opening a child post will be displayed off the top of the window if the parent post is not entirely visible. Steps:

          1. Open up this post: http://www.codeproject.com/Lounge.aspx?msg=2895800#xx2895800xx[^]
          2. Scroll browser window so that the start of Joan's post is above the top of the window.
          3. Click on the first child post (by Perspx). His post is displayed above the top of the window.

          Details: FF2 and IE6, Layout=Normal Ctrl-F5 hit: Yes

          Best wishes, Hans


          [CodeProject Forum Guidelines] [How To Ask A Question] [My Articles]

          modified on Sunday, January 25, 2009 1:13 PM

          C Offline
          C Offline
          Chris Maunder
          wrote on last edited by
          #4

          All fixed. Shog: add another beer to the tally. Or even a good red if you prefer.

          cheers, Chris Maunder

          CodeProject.com : C++ MVP

          S 1 Reply Last reply
          0
          • A Alan N

            I see this too. I'm using IE6, XP, display 1400 x 1050 and 144 dpi. Alan N.

            C Offline
            C Offline
            Chris Richner
            wrote on last edited by
            #5

            same problem with IE 8 Beta 2

            Chris Richner, raccoom.net

            1 Reply Last reply
            0
            • C Chris Maunder

              All fixed. Shog: add another beer to the tally. Or even a good red if you prefer.

              cheers, Chris Maunder

              CodeProject.com : C++ MVP

              S Offline
              S Offline
              Shog9 0
              wrote on last edited by
              #6

              The new menu is thanks enough. Seriously.

              ----

              You're right. These facts that you've laid out totally contradict the wild ramblings that I pulled off the back of cornflakes packets.

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups