Closed Bug 9951 Opened 25 years ago Closed 25 years ago

Clicking on a named anchor does not scroll horizontally

Categories

(Core Graveyard :: Embedding: APIs, defect, P3)

All
Windows NT
defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: nisheeth_mozilla, Assigned: troy)

References

()

Details

Assigning this to myself for M9...
Status: NEW → ASSIGNED
Target Milestone: M9
Ccing troy and setting target milestone to M9...

The problem is that when a named anchor target is located offscreen to the
right, we go to the right vertical position but do not scroll horizontally.  So,
the target does not end up scrolling into the viewable region.
Summary: Clicking on a named anchor does not scroll horizontally → [Webshell] Clicking on a named anchor does not scroll horizontally
It seems like we need to change the way nsPresShell::ScrollFrameIntoView works.
It always defaults the x coordinate to 0 in its call to the ScrollTo() method.
But, the fix is not as simple as using "offset.x" for the x coordinate all the
time because we only want to scroll horizontally when the target frame is not
visible.
Yes, that's the kind of fix we need.

Feel free to assign it to me if you want
Assignee: nisheeth → troy
Status: ASSIGNED → NEW
Summary: [Webshell] Clicking on a named anchor does not scroll horizontally → Clicking on a named anchor does not scroll horizontally
Reassigning to Troy and putting myself on the cc list.
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
Using 8/5 Apprunner, verifying bug fixed - this was an offshoot of bug #3152
which I was assigned QA.
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.