{"action":"created","issue":{"url":"https://api.github.com/repos/miromannino/Justified-Gallery/issues/156","repository_url":"https://api.github.com/repos/miromannino/Justified-Gallery","labels_url":"https://api.github.com/repos/miromannino/Justified-Gallery/issues/156/labels{/name}","comments_url":"https://api.github.com/repos/miromannino/Justified-Gallery/issues/156/comments","events_url":"https://api.github.com/repos/miromannino/Justified-Gallery/issues/156/events","html_url":"https://github.com/miromannino/Justified-Gallery/issues/156","id":139395249,"number":156,"title":"Scrolling top feed when Load More ","user":{"login":"rafasegat","id":8564611,"avatar_url":"https://avatars1.githubusercontent.com/u/8564611?v=4","gravatar_id":"","url":"https://api.github.com/users/rafasegat","html_url":"https://github.com/rafasegat","followers_url":"https://api.github.com/users/rafasegat/followers","following_url":"https://api.github.com/users/rafasegat/following{/other_user}","gists_url":"https://api.github.com/users/rafasegat/gists{/gist_id}","starred_url":"https://api.github.com/users/rafasegat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafasegat/subscriptions","organizations_url":"https://api.github.com/users/rafasegat/orgs","repos_url":"https://api.github.com/users/rafasegat/repos","events_url":"https://api.github.com/users/rafasegat/events{/privacy}","received_events_url":"https://api.github.com/users/rafasegat/received_events","type":"User","site_admin":false},"labels":[{"id":223410388,"url":"https://api.github.com/repos/miromannino/Justified-Gallery/labels/environment%20problem","name":"environment problem","color":"eb6420","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-03-08T21:13:56Z","updated_at":"2017-08-07T13:39:53Z","closed_at":null,"body":"Hi guys\n\nI have a gallery loaded by Justified and a button below 'Load More'. When the user click at the 'Load More' button, is loaded more pics. After the click,  is loaded the justifiedGallery() again. Its working very well.\n\nBut the problem is that its scrolling to the top of gallery when click at 'Load More'. Would be better, don't scroll and stay in the same position.. Is there a way to do alter it?\n\nThanks so much!\n\nRaf\n"},"comment":{"url":"https://api.github.com/repos/miromannino/Justified-Gallery/issues/comments/320666145","html_url":"https://github.com/miromannino/Justified-Gallery/issues/156#issuecomment-320666145","issue_url":"https://api.github.com/repos/miromannino/Justified-Gallery/issues/156","id":320666145,"user":{"login":"adamstamper","id":2218241,"avatar_url":"https://avatars2.githubusercontent.com/u/2218241?v=4","gravatar_id":"","url":"https://api.github.com/users/adamstamper","html_url":"https://github.com/adamstamper","followers_url":"https://api.github.com/users/adamstamper/followers","following_url":"https://api.github.com/users/adamstamper/following{/other_user}","gists_url":"https://api.github.com/users/adamstamper/gists{/gist_id}","starred_url":"https://api.github.com/users/adamstamper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamstamper/subscriptions","organizations_url":"https://api.github.com/users/adamstamper/orgs","repos_url":"https://api.github.com/users/adamstamper/repos","events_url":"https://api.github.com/users/adamstamper/events{/privacy}","received_events_url":"https://api.github.com/users/adamstamper/received_events","type":"User","site_admin":false},"created_at":"2017-08-07T13:39:53Z","updated_at":"2017-08-07T13:39:53Z","body":"I think this is related to the fact your container may briefly shrink to 0px high whilst the new submissions are loaded, which triggers the browser to seem to scroll back to the top. You can get around before you load new submissions by storing the current height of the gallery and setting its CSS min-height attribute to this value. For example, with jQuery:\r\n\r\n```\r\nvar existingHeight = $('#gallery').height();\r\n$('#gallery').css('min-height', existingHeight+'px');\r\n```\r\n"}}
{"actor":{"display_login":"adamstamper"}}