{"issue":{"pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"state":"closed","user":{"avatar_url":"https://secure.gravatar.com/avatar/e68309f117985270285ade8082f4877d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"e68309f117985270285ade8082f4877d","url":"https://api.github.com/users/JakeWharton","login":"JakeWharton","id":66577},"milestone":null,"assignee":null,"labels":[],"updated_at":"2011-10-28T17:44:18Z","closed_at":"2011-10-28T17:44:18Z","comments":1,"url":"https://api.github.com/repos/twitter/bootstrap/issues/499","body":"It would be awesome if the scrollspy JS plugin would read the hashbang from the URL for the initalization state. This way when you link to the very last item on the page but it is not tall enough to reach the top of the page the correct item is still highlighted. That is, until you start scrolling up in which case it would immediately select the previous item.\r\n\r\nIt also should be selected when you click on the item as well.\r\n\r\nI hope that's descriptive enough to allow for a proper understanding of the problem. I can whip up a jsfiddle if further clarification is needed.\r\n\r\nThis is an *extreme* edge case but it's one of things that always causes me to double take when looking at the nav bar.","html_url":"https://github.com/twitter/bootstrap/issues/499","number":499,"title":"Scrollspy Intelligent Initialization","id":2075528,"created_at":"2011-10-28T04:12:19Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/a98244cbdacaf1c0b55499466002f7a8?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"a98244cbdacaf1c0b55499466002f7a8","url":"https://api.github.com/users/fat","login":"fat","id":169705},"updated_at":"2011-10-28T17:44:18Z","url":"https://api.github.com/repos/twitter/bootstrap/issues/comments/2558980","body":"No fiddle needed.\r\n\r\nI could see how having a really small end section would screw scrollspy up, as it would never select your section... However not really sure it's worth adding the extra code for this usecase. If more people bring it up - i'll consider reopening, but i'd like to keep the plugin as small as possible.\r\n\r\nThat said you could add some checks and roll your own custom plugin - just don't think it's too common :)","id":2558980,"created_at":"2011-10-28T17:44:18Z"}}