Closed Bug 12091 Opened 26 years ago Closed 26 years ago

[PP]Scrolling Bug (presShell->ScrollIntoView)

Categories

(Core :: Web Painting, defect, P3)

x86
Linux
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: pollmann, Assigned: ramiro)

References

()

Details

This relates to bug 3256. I added a method to all of the form elements that gets called when the element receives focus. This is the method: void nsFormControlFrame::ScrollIntoView(nsIPresContext* aPresContext) { if (aPresContext) { nsCOMPtr<nsIPresShell> presShell; aPresContext->GetShell(getter_AddRefs(presShell)); presShell->ScrollFrameIntoView(this, NS_PRESSHELL_SCROLL_ANYWHERE,NS_PRESSHELL_SCROLL_ANYWHERE); } } This scrolls correctly on Win, but on GTK, the widgets get scrolled into the wrong position. Ramiro, I've got these changes (many files) in my local tree, so if you want diff's to play with, I can attach them. Or you can run/debug the build on blueviper in /build/ng/mozilla, which already has the changes.
Blocks: 3256
Eric, I checked in code to fix the keyboard scrolling on gtk. Check it out and see if it fixes your bug too. thanks.
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Thanks Ramiro, that did the trick! This bugfix will can be verified by firing up a Linux build and pressing the Page Down key on Demo 8. If the screen doesn't look completely messed up, it is fixed.
Whiteboard: [19990823] waiting for a new Linux build
Status: RESOLVED → VERIFIED
verified on build 1999-09-27-08, linux 2.2
Whiteboard: [19990823] waiting for a new Linux build
clearing status whiteboard
Component: Layout: View Rendering → Layout: Web Painting
You need to log in before you can comment on or make changes to this bug.