{"action":"created","issue":{"url":"https://api.github.com/repos/codenameone/CodenameOne/issues/2950","repository_url":"https://api.github.com/repos/codenameone/CodenameOne","labels_url":"https://api.github.com/repos/codenameone/CodenameOne/issues/2950/labels{/name}","comments_url":"https://api.github.com/repos/codenameone/CodenameOne/issues/2950/comments","events_url":"https://api.github.com/repos/codenameone/CodenameOne/issues/2950/events","html_url":"https://github.com/codenameone/CodenameOne/issues/2950","id":522252905,"node_id":"MDU6SXNzdWU1MjIyNTI5MDU=","number":2950,"title":"Using SpanButton or SpanLabel in a list breaks the scrolling upwards","user":{"login":"ThomasH99","id":16265939,"node_id":"MDQ6VXNlcjE2MjY1OTM5","avatar_url":"https://avatars3.githubusercontent.com/u/16265939?v=4","gravatar_id":"","url":"https://api.github.com/users/ThomasH99","html_url":"https://github.com/ThomasH99","followers_url":"https://api.github.com/users/ThomasH99/followers","following_url":"https://api.github.com/users/ThomasH99/following{/other_user}","gists_url":"https://api.github.com/users/ThomasH99/gists{/gist_id}","starred_url":"https://api.github.com/users/ThomasH99/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThomasH99/subscriptions","organizations_url":"https://api.github.com/users/ThomasH99/orgs","repos_url":"https://api.github.com/users/ThomasH99/repos","events_url":"https://api.github.com/users/ThomasH99/events{/privacy}","received_events_url":"https://api.github.com/users/ThomasH99/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"shannah","id":2677562,"node_id":"MDQ6VXNlcjI2Nzc1NjI=","avatar_url":"https://avatars3.githubusercontent.com/u/2677562?v=4","gravatar_id":"","url":"https://api.github.com/users/shannah","html_url":"https://github.com/shannah","followers_url":"https://api.github.com/users/shannah/followers","following_url":"https://api.github.com/users/shannah/following{/other_user}","gists_url":"https://api.github.com/users/shannah/gists{/gist_id}","starred_url":"https://api.github.com/users/shannah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shannah/subscriptions","organizations_url":"https://api.github.com/users/shannah/orgs","repos_url":"https://api.github.com/users/shannah/repos","events_url":"https://api.github.com/users/shannah/events{/privacy}","received_events_url":"https://api.github.com/users/shannah/received_events","type":"User","site_admin":false},"assignees":[{"login":"shannah","id":2677562,"node_id":"MDQ6VXNlcjI2Nzc1NjI=","avatar_url":"https://avatars3.githubusercontent.com/u/2677562?v=4","gravatar_id":"","url":"https://api.github.com/users/shannah","html_url":"https://github.com/shannah","followers_url":"https://api.github.com/users/shannah/followers","following_url":"https://api.github.com/users/shannah/following{/other_user}","gists_url":"https://api.github.com/users/shannah/gists{/gist_id}","starred_url":"https://api.github.com/users/shannah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shannah/subscriptions","organizations_url":"https://api.github.com/users/shannah/orgs","repos_url":"https://api.github.com/users/shannah/repos","events_url":"https://api.github.com/users/shannah/events{/privacy}","received_events_url":"https://api.github.com/users/shannah/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/codenameone/CodenameOne/milestones/15","html_url":"https://github.com/codenameone/CodenameOne/milestone/15","labels_url":"https://api.github.com/repos/codenameone/CodenameOne/milestones/15/labels","id":4265101,"node_id":"MDk6TWlsZXN0b25lNDI2NTEwMQ==","number":15,"title":"Version 8.0","description":"","creator":{"login":"codenameone","id":2353641,"node_id":"MDQ6VXNlcjIzNTM2NDE=","avatar_url":"https://avatars1.githubusercontent.com/u/2353641?v=4","gravatar_id":"","url":"https://api.github.com/users/codenameone","html_url":"https://github.com/codenameone","followers_url":"https://api.github.com/users/codenameone/followers","following_url":"https://api.github.com/users/codenameone/following{/other_user}","gists_url":"https://api.github.com/users/codenameone/gists{/gist_id}","starred_url":"https://api.github.com/users/codenameone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codenameone/subscriptions","organizations_url":"https://api.github.com/users/codenameone/orgs","repos_url":"https://api.github.com/users/codenameone/repos","events_url":"https://api.github.com/users/codenameone/events{/privacy}","received_events_url":"https://api.github.com/users/codenameone/received_events","type":"User","site_admin":false},"open_issues":66,"closed_issues":11,"state":"open","created_at":"2019-04-27T04:47:22Z","updated_at":"2019-12-17T21:06:10Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2019-11-13T14:19:13Z","updated_at":"2019-12-17T21:06:10Z","closed_at":"2019-12-17T21:06:10Z","author_association":"CONTRIBUTOR","body":"Issues created as asked by Shai here: https://stackoverflow.com/questions/58826442/using-spanbutton-or-spanlabel-in-a-list-breaks-the-scrolling-upwards\r\n\r\nI see some very weird behavior from SpanButton/SpanLabels. In the below code, if you drag the list upwards (to scroll the list upwards), all the displayed elements will jump down to the bottom of the screen. This doesn't happen with normal Labels (eg. if you disable the line adding the SpanButton).\r\n\r\nDragging down works as you'd expect.\r\n```\r\n//to reproduce: compile the code, drag the screen upwards, and all the text will jump to the bottom of the screen\r\nForm hi2 = new Form();\r\nhi2.setLayout(new BorderLayout()); \r\nContainer cont17 = new Container(BoxLayout.y());\r\ncont17.setScrollableY(true);\r\nfor (int i = 0; i < 10; i++) {\r\n    Label l = new Label(\"Label \" + i);\r\n    cont17.add(l);\r\n}\r\ncont17.add(new SpanButton(\"SpanButton\")); //disable this line and the scroll upwards behaves normally\r\nhi2.add(BorderLayout.CENTER,cont17);\r\nhi2.show(); \r\n```\r\n**NB. I didn't manage to figure out *why* it doesn't work with SpanButton and SpanLabel, so there may be other components causing the same problem.** "},"comment":{"url":"https://api.github.com/repos/codenameone/CodenameOne/issues/comments/566748892","html_url":"https://github.com/codenameone/CodenameOne/issues/2950#issuecomment-566748892","issue_url":"https://api.github.com/repos/codenameone/CodenameOne/issues/2950","id":566748892,"node_id":"MDEyOklzc3VlQ29tbWVudDU2Njc0ODg5Mg==","user":{"login":"ThomasH99","id":16265939,"node_id":"MDQ6VXNlcjE2MjY1OTM5","avatar_url":"https://avatars3.githubusercontent.com/u/16265939?v=4","gravatar_id":"","url":"https://api.github.com/users/ThomasH99","html_url":"https://github.com/ThomasH99","followers_url":"https://api.github.com/users/ThomasH99/followers","following_url":"https://api.github.com/users/ThomasH99/following{/other_user}","gists_url":"https://api.github.com/users/ThomasH99/gists{/gist_id}","starred_url":"https://api.github.com/users/ThomasH99/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThomasH99/subscriptions","organizations_url":"https://api.github.com/users/ThomasH99/orgs","repos_url":"https://api.github.com/users/ThomasH99/repos","events_url":"https://api.github.com/users/ThomasH99/events{/privacy}","received_events_url":"https://api.github.com/users/ThomasH99/received_events","type":"User","site_admin":false},"created_at":"2019-12-17T21:06:10Z","updated_at":"2019-12-17T21:06:10Z","author_association":"CONTRIBUTOR","body":"Confirm its fixed, thanks!"}}
{"actor":{"display_login":"ThomasH99"}}