Anchor links scroll page too far, so title is not visible

Originator:igeek1
Number:rdar://16817412 Date Originated:05-May-2014 05:32 PM
Status:Duplicate of 16204822 Resolved:08-May-2014 07:02 PM
Product:Documentation Product Version:N/A
Classification:UI/Usability Reproducible:Always
 
Summary:
If you click an anchor link to a documentation page (only when the link is not on a documentation page), the resulting page scroll is in the wrong position, so the section title is occluded by the Apple developer library page header bars.

Steps to Reproduce:
1. Generate a documentation anchor link as described in rdar://16817062. An example link would be https://developer.apple.com/library/ios/documentation/uikit/reference/UIBezierPath_class/Reference/Reference.html#//apple_ref/occ/instm/UIBezierPath/addQuadCurveToPoint:controlPoint:
2. Click this link.
3. The page will load, but it will be scrolled to the top instead of to the section referenced by the # anchor in the URL.
4. Type Command-L to select the address bar in most browsers.
5. Press Return to load the page again.

Expected Results:
The page scrolls such that the thing that is visible at the top of the page is the title of the method or property being documented. In the example provided, it would be the <h3>addQuadCurveToPoint:controlPoint:</h3>.

Actual Results:
The page scrolls too far. Presumably, the <h3> is at the very top of the window, but because the Apple developer docs have about 190 px of top bars that overlap the content, the first part of the actual documentation that is visible is the <h5>parameters</h5>. The method name, abstract, and method declaration are all hidden behind the top header bars of the page.

Version:
UIBezierPath Class Reference
https://developer.apple.com/library/ios/documentation/uikit/reference/UIBezierPath_class/Reference/Reference.html#//apple_ref/occ/instm/UIBezierPath/addQuadCurveToPoint:controlPoint:

Notes:


Configuration:
This bug is not specific to the documentation page I have used as a sample. It happens with all pages, as far as I can tell.

It happens only when clicking a link from an external page. If you go to https://developer.apple.com/library/ios/documentation/uikit/reference/UIBezierPath_class/Reference/Reference.html, scroll to the Tasks section, and click the link to addQuadCurveToPoint:controlPoint:, it scrolls to the right location, with the title, abstract, and method declaration visible.

Safari 7.0.3 (9537.75.14)
Chrome 34.0.1847.131

Attachments:
http://cl.ly/VMnE

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!