Closed Bug 205919 Opened 21 years ago Closed 21 years ago

horizontal scrollbar does not reveal all characters in document

Categories

(Core :: Layout, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 6976

People

(Reporter: jwz, Unassigned)

Details

I found this problem in some random blog I was reading, where the author
specified everything with hardcoded pixel sizes, as they always do.  Here's a
short example.

Load the following document, and then view it in a window that is less than 1000
pixels wide (I'm looking at it in a window that is 660 pixels wide.)

There is a horizontal scrollbar, as there should be, since the document is wider
than the window.  Scrolling all the way to the right lets you see all the text
on the right side.  But when you are scrolled all the way to the left, the first
five and a half columns of the document are still hidden off the left edge of
the window: you can't scroll far enough to the left to see all the text.

In this blog I was reading, the first few characters of every line were missing,
unless I maximized my window.  Ugh.

Apparently when there's a fixed width and both margins are "auto", the origin
becomes negative, and the horizontal scrollbar doesn't cope with that well.

Even if it's the case that this layout (with a negative origin) is "correct"
according to the spec, the horizontal scrollbar should still let me see those
characters: it should be scrolling between left-edge and right-edge, not between
zero and right-edge (as it is now.)

-----------------------

    <div style="margin-left: auto; margin-right: auto; width: 1000px;">

        0123456789 0123456789 0123456789 0123456789 0123456789
        0123456789 0123456789 0123456789 0123456789 0123456789
        0123456789 0123456789 0123456789 0123456789 0123456789
        0123456789 0123456789 0123456789 0123456789 0123456789
        0123456789 0123456789 0123456789 0123456789 0123456789
        0123456789 0123456789 0123456789 0123456789 0123456789
        0123456789 0123456789 0123456789 0123456789 0123456789
        0123456789 0123456789 0123456789 0123456789 0123456789
        0123456789 0123456789 0123456789 0123456789 0123456789
        0123456789 0123456789 0123456789 0123456789 0123456789
        0123456789 0123456789 0123456789 0123456789 0123456789
        0123456789 0123456789 0123456789 0123456789 0123456789
        0123456789 0123456789 0123456789 0123456789 0123456789
        0123456789 0123456789 0123456789 0123456789 0123456789
        0123456789 0123456789 0123456789 0123456789 0123456789
        0123456789 0123456789 0123456789 0123456789 0123456789
        0123456789 0123456789 0123456789 0123456789 0123456789
    </div>
I forgot to mention:

Mozilla 1.3
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030314
Red Hat Linux 7.2
No DOM manipulation in test case; setting to Layout component.

This is a duplication of bug 6976.

*** This bug has been marked as a duplicate of 6976 ***
Status: NEW → RESOLVED
Closed: 21 years ago
Component: DOM Style → Layout
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.