{"action":"created","issue":{"url":"https://api.github.com/repos/EventGhost/EventGhost/issues/97","repository_url":"https://api.github.com/repos/EventGhost/EventGhost","labels_url":"https://api.github.com/repos/EventGhost/EventGhost/issues/97/labels{/name}","comments_url":"https://api.github.com/repos/EventGhost/EventGhost/issues/97/comments","events_url":"https://api.github.com/repos/EventGhost/EventGhost/issues/97/events","html_url":"https://github.com/EventGhost/EventGhost/issues/97","id":171793446,"number":97,"title":"Log doesn't scroll at certain window sizes","user":{"login":"kdschlosser","id":10932297,"avatar_url":"https://avatars.githubusercontent.com/u/10932297?v=3","gravatar_id":"","url":"https://api.github.com/users/kdschlosser","html_url":"https://github.com/kdschlosser","followers_url":"https://api.github.com/users/kdschlosser/followers","following_url":"https://api.github.com/users/kdschlosser/following{/other_user}","gists_url":"https://api.github.com/users/kdschlosser/gists{/gist_id}","starred_url":"https://api.github.com/users/kdschlosser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kdschlosser/subscriptions","organizations_url":"https://api.github.com/users/kdschlosser/orgs","repos_url":"https://api.github.com/users/kdschlosser/repos","events_url":"https://api.github.com/users/kdschlosser/events{/privacy}","received_events_url":"https://api.github.com/users/kdschlosser/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/EventGhost/EventGhost/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":21,"created_at":"2016-08-18T00:48:05Z","updated_at":"2016-08-29T05:59:09Z","closed_at":"2016-08-18T08:54:04Z","body":"I have tested this with Python script. and with a for loop on start of a plugin. but the log doesn't automatically scroll.\r\n\r\nI know there were modifications to that portion of it. but is it not supposed to automatically scroll at all?? even when the slider is all the way at the bottom position?\r\n"},"comment":{"url":"https://api.github.com/repos/EventGhost/EventGhost/issues/comments/243038501","html_url":"https://github.com/EventGhost/EventGhost/issues/97#issuecomment-243038501","issue_url":"https://api.github.com/repos/EventGhost/EventGhost/issues/97","id":243038501,"user":{"login":"kdschlosser","id":10932297,"avatar_url":"https://avatars.githubusercontent.com/u/10932297?v=3","gravatar_id":"","url":"https://api.github.com/users/kdschlosser","html_url":"https://github.com/kdschlosser","followers_url":"https://api.github.com/users/kdschlosser/followers","following_url":"https://api.github.com/users/kdschlosser/following{/other_user}","gists_url":"https://api.github.com/users/kdschlosser/gists{/gist_id}","starred_url":"https://api.github.com/users/kdschlosser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kdschlosser/subscriptions","organizations_url":"https://api.github.com/users/kdschlosser/orgs","repos_url":"https://api.github.com/users/kdschlosser/repos","events_url":"https://api.github.com/users/kdschlosser/events{/privacy}","received_events_url":"https://api.github.com/users/kdschlosser/received_events","type":"User","site_admin":false},"created_at":"2016-08-29T05:59:09Z","updated_at":"2016-08-29T05:59:09Z","body":"I have a really close solution. You might be able to get it perfect. this will keep it in the right place unless you move crazy slow then it will not scroll the list. but if you move the box quickly well not really just a little bit faster than crazy slow it will scroll properly. i am not sure why but the listctrl doesn't like to move in small pixel numbers, that is a wx bug i think\r\n\r\n    def OnSize(self, evt):\r\n        try:\r\n            height = self.GetItemRect(self.GetTopItem()).GetHeight()\r\n        except:\r\n            pass\r\n        else:\r\n            lastSize = self.lastSize\r\n            newSize = self.GetSize()[1]\r\n\r\n            size = lastSize - newSize\r\n\r\n            if lastSize > height:\r\n                self.ScrollList(0, size)\r\n                self.lastSize = self.GetSize()[1]\r\n\r\n        evt.Skip()\r\n\r\nand just bind the EVT_SIZE\r\n\r\ngive it a try and see if it's something you might be able to fine tune"}}
{"actor":{"display_login":"kdschlosser"}}