{"action":"created","issue":{"url":"https://api.github.com/repos/swimlane/angular2-data-table/issues/324","repository_url":"https://api.github.com/repos/swimlane/angular2-data-table","labels_url":"https://api.github.com/repos/swimlane/angular2-data-table/issues/324/labels{/name}","comments_url":"https://api.github.com/repos/swimlane/angular2-data-table/issues/324/comments","events_url":"https://api.github.com/repos/swimlane/angular2-data-table/issues/324/events","html_url":"https://github.com/swimlane/angular2-data-table/issues/324","id":192274877,"number":324,"title":"Pagination \"skip to last page\" is not selected after click","user":{"login":"fenta23","id":1165823,"avatar_url":"https://avatars.githubusercontent.com/u/1165823?v=3","gravatar_id":"","url":"https://api.github.com/users/fenta23","html_url":"https://github.com/fenta23","followers_url":"https://api.github.com/users/fenta23/followers","following_url":"https://api.github.com/users/fenta23/following{/other_user}","gists_url":"https://api.github.com/users/fenta23/gists{/gist_id}","starred_url":"https://api.github.com/users/fenta23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fenta23/subscriptions","organizations_url":"https://api.github.com/users/fenta23/orgs","repos_url":"https://api.github.com/users/fenta23/repos","events_url":"https://api.github.com/users/fenta23/events{/privacy}","received_events_url":"https://api.github.com/users/fenta23/received_events","type":"User","site_admin":false},"labels":[{"id":403504504,"url":"https://api.github.com/repos/swimlane/angular2-data-table/labels/Investigate","name":"Investigate","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-29T12:57:38Z","updated_at":"2016-11-30T09:34:37Z","closed_at":null,"body":"**I'm submitting a ...**  (check one with \"x\")\r\n```\r\n[x] bug report => search github for a similar issue or PR before submitting\r\n[ ] feature request\r\n[ ] support request => Please do not submit support request here\r\n```\r\n\r\n**Current behavior**\r\nIf you jump to the last page via pagination, instead of the last element the pre last element get selected.\r\n\r\n**Expected behavior**\r\nPagination shows last item selected\r\n\r\n**Reproduction of the problem**\r\nGo to the Demo page: http://swimlane.github.io/angular2-data-table/#\r\nchose a Demo with pagination (100k rows, actually there are only 10k, but doesn't matter;))\r\nClick on the skip to last page icon in pagination. Prelast get selected.\r\n\r\n**What is the motivation / use case for changing the behavior?**\r\nObvious, the last element get selected.\r\n\r\n**Please tell us about your environment:**\r\nWindows 10\r\nNode v6.9.1\r\n\r\n\r\n* **Table version:** 0.7.x\r\nlatest\r\n\r\n* **Angular version:** 2.0.x\r\n'@angular/core\": \"2.0.1\",\r\n\r\n* **Browser:** \r\nChrome Version 54.0.2840.99 m (64-bit)\r\nFirefox 49.0.2\r\n\r\n* **Language:** [all | TypeScript X.X | ES6/7 | ES5]\r\ntypescript :~2.0.2"},"comment":{"url":"https://api.github.com/repos/swimlane/angular2-data-table/issues/comments/263826201","html_url":"https://github.com/swimlane/angular2-data-table/issues/324#issuecomment-263826201","issue_url":"https://api.github.com/repos/swimlane/angular2-data-table/issues/324","id":263826201,"user":{"login":"fenta23","id":1165823,"avatar_url":"https://avatars.githubusercontent.com/u/1165823?v=3","gravatar_id":"","url":"https://api.github.com/users/fenta23","html_url":"https://github.com/fenta23","followers_url":"https://api.github.com/users/fenta23/followers","following_url":"https://api.github.com/users/fenta23/following{/other_user}","gists_url":"https://api.github.com/users/fenta23/gists{/gist_id}","starred_url":"https://api.github.com/users/fenta23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fenta23/subscriptions","organizations_url":"https://api.github.com/users/fenta23/orgs","repos_url":"https://api.github.com/users/fenta23/repos","events_url":"https://api.github.com/users/fenta23/events{/privacy}","received_events_url":"https://api.github.com/users/fenta23/received_events","type":"User","site_admin":false},"created_at":"2016-11-30T09:34:37Z","updated_at":"2016-11-30T09:34:37Z","body":"It is somehow related to the height of the table itself. if you set your demo 100k table to 500px, it works. I will have a look later in your calculation. Can you give me a hint where to look? "}}
{"actor":{"display_login":"fenta23"}}