{"action":"created","issue":{"url":"https://api.github.com/repos/lokesh/lightbox2/issues/172","labels_url":"https://api.github.com/repos/lokesh/lightbox2/issues/172/labels{/name}","comments_url":"https://api.github.com/repos/lokesh/lightbox2/issues/172/comments","events_url":"https://api.github.com/repos/lokesh/lightbox2/issues/172/events","html_url":"https://github.com/lokesh/lightbox2/issues/172","id":27306542,"number":172,"title":"Center lightbox vertically","user":{"login":"paexthetiker","id":1216793,"avatar_url":"https://avatars.githubusercontent.com/u/1216793?v=3","gravatar_id":"","url":"https://api.github.com/users/paexthetiker","html_url":"https://github.com/paexthetiker","followers_url":"https://api.github.com/users/paexthetiker/followers","following_url":"https://api.github.com/users/paexthetiker/following{/other_user}","gists_url":"https://api.github.com/users/paexthetiker/gists{/gist_id}","starred_url":"https://api.github.com/users/paexthetiker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paexthetiker/subscriptions","organizations_url":"https://api.github.com/users/paexthetiker/orgs","repos_url":"https://api.github.com/users/paexthetiker/repos","events_url":"https://api.github.com/users/paexthetiker/events{/privacy}","received_events_url":"https://api.github.com/users/paexthetiker/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2014-02-10T22:28:26Z","updated_at":"2015-06-05T11:00:53Z","closed_at":null,"body":"Hi,\r\n\r\nas far as i can get from the code the lightbox is currently positioned like this:\r\n\r\ntop = $window.scrollTop() + $window.height() / 10;\r\n\r\nso at a certain position from the top of the current position.\r\nIs there a way to display the lightbox centered in the window. And also center it again on image change (otherwise if the new image has a different height it won't be centered anymore).\r\n\r\nI tried working it out but did not get to change it.\r\nWould appreciate any help!\r\nBest,\r\nPascal"},"comment":{"url":"https://api.github.com/repos/lokesh/lightbox2/issues/comments/109258512","html_url":"https://github.com/lokesh/lightbox2/issues/172#issuecomment-109258512","issue_url":"https://api.github.com/repos/lokesh/lightbox2/issues/172","id":109258512,"user":{"login":"Soullighter","id":10616549,"avatar_url":"https://avatars.githubusercontent.com/u/10616549?v=3","gravatar_id":"","url":"https://api.github.com/users/Soullighter","html_url":"https://github.com/Soullighter","followers_url":"https://api.github.com/users/Soullighter/followers","following_url":"https://api.github.com/users/Soullighter/following{/other_user}","gists_url":"https://api.github.com/users/Soullighter/gists{/gist_id}","starred_url":"https://api.github.com/users/Soullighter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Soullighter/subscriptions","organizations_url":"https://api.github.com/users/Soullighter/orgs","repos_url":"https://api.github.com/users/Soullighter/repos","events_url":"https://api.github.com/users/Soullighter/events{/privacy}","received_events_url":"https://api.github.com/users/Soullighter/received_events","type":"User","site_admin":false},"created_at":"2015-06-05T11:00:52Z","updated_at":"2015-06-05T11:00:52Z","body":"@gTempesta Thank you man. It works"}}