Closed
Bug 56164
Opened 25 years ago
Closed 25 years ago
Initial position of platform scrollbar incorrect
Categories
(Core :: Web Painting, defect, P3)
Tracking
()
VERIFIED
FIXED
People
(Reporter: jkobal, Assigned: kmcclusk)
References
()
Details
This shows up as a problem on OS/2, but it appears to be a general bug that
doesn't affect behavior on other OSes.
On the initial drop-down of a view with a platform-specific scrollbar, the
scrollbar position is incorrect. After the drop-down is closed and re-opened,
the scrollbar position is correct. I have seen this on the "Editions" pop-up
window from the CNN web site, when dropping down the "Select your location"
option box.
The problem is that nsScrollingView::SetDimensions sets the new bounds of the
clipView, but does not update the scrollbars accordingly. The current code in
view/src/nsScrollingView.cpp is:
// Size and position the clip view
if (nsnull != mClipView)
mClipView->SetBounds(clipRect, aPaint);
The code should be changed to be:
// Size and position the clip view
if (nsnull != mClipView) {
mClipView->SetBounds(clipRect, aPaint);
UpdateScrollControls(aPaint);
}
This will recalculate the size and position of the scrollbars relative to the
new size of the view.
Comment 1•25 years ago
|
||
we're looking for an r= on this...
| Assignee | ||
Comment 2•25 years ago
|
||
Comment 4•25 years ago
|
||
Fix checked in.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Updated•7 years ago
|
Component: Layout: View Rendering → Layout: Web Painting
You need to log in
before you can comment on or make changes to this bug.
Description
•