{"action":"created","issue":{"url":"https://api.github.com/repos/mattermost/docs/issues/369","repository_url":"https://api.github.com/repos/mattermost/docs","labels_url":"https://api.github.com/repos/mattermost/docs/issues/369/labels{/name}","comments_url":"https://api.github.com/repos/mattermost/docs/issues/369/comments","events_url":"https://api.github.com/repos/mattermost/docs/issues/369/events","html_url":"https://github.com/mattermost/docs/issues/369","id":171481232,"number":369,"title":"[Help Wanted] Bug: Linking to a section heading of a document causes the scroll to offset by the width of the Mattermost header bar","user":{"login":"esethna","id":14333569,"avatar_url":"https://avatars.githubusercontent.com/u/14333569?v=3","gravatar_id":"","url":"https://api.github.com/users/esethna","html_url":"https://github.com/esethna","followers_url":"https://api.github.com/users/esethna/followers","following_url":"https://api.github.com/users/esethna/following{/other_user}","gists_url":"https://api.github.com/users/esethna/gists{/gist_id}","starred_url":"https://api.github.com/users/esethna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esethna/subscriptions","organizations_url":"https://api.github.com/users/esethna/orgs","repos_url":"https://api.github.com/users/esethna/repos","events_url":"https://api.github.com/users/esethna/events{/privacy}","received_events_url":"https://api.github.com/users/esethna/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-16T18:09:20Z","updated_at":"2016-08-18T13:59:41Z","closed_at":null,"body":"Repro:\r\n1. Click a link to a specific section header in a document (for example, https://docs.mattermost.com/deployment/cluster.html#file-storage-configuration)\r\n\r\nObserved: The section header is hidden behind the \"Mattermost\" header bar because the scroll is offset. This only seems to happen the first time the link is visited.\r\n\r\nExpected: Page is scrolled so linked section starts just below the \"Mattermost\" header bar\r\n\r\nSee screenshot:\r\n![image](https://cloud.githubusercontent.com/assets/14333569/17710347/0e829b9c-63aa-11e6-8568-6d82177eefcf.png)\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/mattermost/docs/issues/comments/240731378","html_url":"https://github.com/mattermost/docs/issues/369#issuecomment-240731378","issue_url":"https://api.github.com/repos/mattermost/docs/issues/369","id":240731378,"user":{"login":"shieldsjared","id":600643,"avatar_url":"https://avatars.githubusercontent.com/u/600643?v=3","gravatar_id":"","url":"https://api.github.com/users/shieldsjared","html_url":"https://github.com/shieldsjared","followers_url":"https://api.github.com/users/shieldsjared/followers","following_url":"https://api.github.com/users/shieldsjared/following{/other_user}","gists_url":"https://api.github.com/users/shieldsjared/gists{/gist_id}","starred_url":"https://api.github.com/users/shieldsjared/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shieldsjared/subscriptions","organizations_url":"https://api.github.com/users/shieldsjared/orgs","repos_url":"https://api.github.com/users/shieldsjared/repos","events_url":"https://api.github.com/users/shieldsjared/events{/privacy}","received_events_url":"https://api.github.com/users/shieldsjared/received_events","type":"User","site_admin":false},"created_at":"2016-08-18T13:59:41Z","updated_at":"2016-08-18T13:59:41Z","body":"I'm having a little trouble reproducing this, but I can definitely see how the named-anchors aren't lining up _well_.  There are common fixes for this sort of thing, but they tend to lead down dangerous roads of unpredictable behavior (judging by the fixes I've found and the responses to each).  In lieu of resolving this issue directly, I think a more reliable approach might be to correct the underlying reason that the pages are scrolling \"underneath\" of the header (which causes the browser to fail to properly scroll the named-element into view).  If you notice, the right-hand scrollbar falls _under_ the header (which is fixed positioned).  I'm sure that with some tinkering we can update the layout to prevent this overlay of layers, which should then resolve the issue you're describing.  Just a thought...\r\n\r\nNevertheless, what browser did you repro this in?"}}
{"actor":{"display_login":"shieldsjared"}}