Closed Bug 263687 Opened 20 years ago Closed 19 years ago

{inc} Scrollbar that has nothing to scroll becomes active when focused

Categories

(Core :: Layout, defect)

x86
Linux
defect
Not set
minor

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: MatsPalmgren_bugz, Unassigned)

References

Details

(Keywords: testcase)

Attachments

(2 files, 1 obsolete file)

Scrollbar that has nothing to scroll becomes active when focused.

STEPS TO REPRODUCE:
1. Load testcase
2. Press TAB key (to focus the red box)

ACTUAL RESULTS:
The (inactive) horizontal scrollbar of the red box shows a short slider
that indicates that there is a lot of content to scroll, it is painted as
an active scrollbar.
(A page scrollbar may also appear - this is a separate known bug)

EXPECTED RESULTS:
Scrollbar should still be inactive.

PLATFORMS AND BUILDS TESTED:
Bug occurs in Mozilla trunk 2004-10-09-07 Linux.
Bug occurs in Mozilla trunk 2004-09-10-07 Linux (which is before the change
that removed the sliders for inactive scrollbars).

ADDITIONAL INFORMATION:
The bug does not occur when there is padding on BODY.
Attached file Testcase (obsolete) —
Severity: normal → minor
Keywords: testcase
Summary: Scrollbar that has nothing to scroll becomes active when focused → {inc} Scrollbar that has nothing to scroll becomes active when focused
Attached patch WallpaperSplinter Review
This fixes the problem but it's probably not the correct fix...

The root cause seems to be that the inner view returns a narrow width in
the call in nsGfxScrollFrameInner::GetScrolledSize():
   view->GetBounds()

This propagates to 'scrolledContentSize.width' which becomes less than
'scrollAreaRect.width' which makes 'maxX' negative...
Attached file Testcase #2
It's not the focusing of the DIV that causes the problem, it's when the
overflow
is created...
Attachment #161622 - Attachment is obsolete: true
Mozilla Windows Trunk Nightly Build Regression Window
Pass: 2004071609
Fail: 2004071808
This is wfm now, with a build with the fix for bug 240276 built in.
Status: NEW → RESOLVED
Closed: 19 years ago
Depends on: 240276
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: