{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/AsyncDisplayKit/issues/1339","repository_url":"https://api.github.com/repos/facebook/AsyncDisplayKit","labels_url":"https://api.github.com/repos/facebook/AsyncDisplayKit/issues/1339/labels{/name}","comments_url":"https://api.github.com/repos/facebook/AsyncDisplayKit/issues/1339/comments","events_url":"https://api.github.com/repos/facebook/AsyncDisplayKit/issues/1339/events","html_url":"https://github.com/facebook/AsyncDisplayKit/issues/1339","id":139118391,"number":1339,"title":"[ASLayoutSpec] ASStackLayoutJustifyContentSpaceBetween flooring causing issues","user":{"login":"tomizimobile","id":7967500,"avatar_url":"https://avatars.githubusercontent.com/u/7967500?v=3","gravatar_id":"","url":"https://api.github.com/users/tomizimobile","html_url":"https://github.com/tomizimobile","followers_url":"https://api.github.com/users/tomizimobile/followers","following_url":"https://api.github.com/users/tomizimobile/following{/other_user}","gists_url":"https://api.github.com/users/tomizimobile/gists{/gist_id}","starred_url":"https://api.github.com/users/tomizimobile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomizimobile/subscriptions","organizations_url":"https://api.github.com/users/tomizimobile/orgs","repos_url":"https://api.github.com/users/tomizimobile/repos","events_url":"https://api.github.com/users/tomizimobile/events{/privacy}","received_events_url":"https://api.github.com/users/tomizimobile/received_events","type":"User","site_admin":false},"labels":[{"id":337824901,"url":"https://api.github.com/repos/facebook/AsyncDisplayKit/labels/ASLayoutSpec","name":"ASLayoutSpec","color":"d4c5f9","default":false},{"id":471854567,"url":"https://api.github.com/repos/facebook/AsyncDisplayKit/labels/Needs%20More%20Info","name":"Needs More Info","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":{"login":"maicki","id":25288,"avatar_url":"https://avatars.githubusercontent.com/u/25288?v=3","gravatar_id":"","url":"https://api.github.com/users/maicki","html_url":"https://github.com/maicki","followers_url":"https://api.github.com/users/maicki/followers","following_url":"https://api.github.com/users/maicki/following{/other_user}","gists_url":"https://api.github.com/users/maicki/gists{/gist_id}","starred_url":"https://api.github.com/users/maicki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maicki/subscriptions","organizations_url":"https://api.github.com/users/maicki/orgs","repos_url":"https://api.github.com/users/maicki/repos","events_url":"https://api.github.com/users/maicki/events{/privacy}","received_events_url":"https://api.github.com/users/maicki/received_events","type":"User","site_admin":false},"assignees":[{"login":"maicki","id":25288,"avatar_url":"https://avatars.githubusercontent.com/u/25288?v=3","gravatar_id":"","url":"https://api.github.com/users/maicki","html_url":"https://github.com/maicki","followers_url":"https://api.github.com/users/maicki/followers","following_url":"https://api.github.com/users/maicki/following{/other_user}","gists_url":"https://api.github.com/users/maicki/gists{/gist_id}","starred_url":"https://api.github.com/users/maicki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maicki/subscriptions","organizations_url":"https://api.github.com/users/maicki/orgs","repos_url":"https://api.github.com/users/maicki/repos","events_url":"https://api.github.com/users/maicki/events{/privacy}","received_events_url":"https://api.github.com/users/maicki/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/facebook/AsyncDisplayKit/milestones/7","html_url":"https://github.com/facebook/AsyncDisplayKit/milestones/2.0.0","labels_url":"https://api.github.com/repos/facebook/AsyncDisplayKit/milestones/7/labels","id":1164099,"number":7,"title":"2.0.0","description":"","creator":{"login":"appleguy","id":565251,"avatar_url":"https://avatars.githubusercontent.com/u/565251?v=3","gravatar_id":"","url":"https://api.github.com/users/appleguy","html_url":"https://github.com/appleguy","followers_url":"https://api.github.com/users/appleguy/followers","following_url":"https://api.github.com/users/appleguy/following{/other_user}","gists_url":"https://api.github.com/users/appleguy/gists{/gist_id}","starred_url":"https://api.github.com/users/appleguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/appleguy/subscriptions","organizations_url":"https://api.github.com/users/appleguy/orgs","repos_url":"https://api.github.com/users/appleguy/repos","events_url":"https://api.github.com/users/appleguy/events{/privacy}","received_events_url":"https://api.github.com/users/appleguy/received_events","type":"User","site_admin":false},"open_issues":38,"closed_issues":122,"state":"open","created_at":"2015-06-15T00:41:47Z","updated_at":"2016-11-15T05:12:57Z","due_on":"2016-11-30T00:00:00Z","closed_at":null},"comments":2,"created_at":"2016-03-07T22:50:09Z","updated_at":"2016-11-15T14:00:19Z","closed_at":null,"body":"I have a ASStackLayoutSpec that contains nine views stacked with .SpaceBetween. The flooring in the following line causes enough extra spacing to make the views not perfectly aligned:\n `return stackedLayout(style, 0, floorf(violation / numOfSpacings), fmodf(violation, numOfSpacings), unpositionedLayout, constrainedSize);`\nIn my specific case at least, it seems to lay out perfectly like this:\n`return stackedLayout(style, 0, violation / numOfSpacings, 0, unpositionedLayout, constrainedSize);`\n\nIs this something that should be changed, or maybe a new ASStackLayoutJustifyContent case made for?\n"},"comment":{"url":"https://api.github.com/repos/facebook/AsyncDisplayKit/issues/comments/260648348","html_url":"https://github.com/facebook/AsyncDisplayKit/issues/1339#issuecomment-260648348","issue_url":"https://api.github.com/repos/facebook/AsyncDisplayKit/issues/1339","id":260648348,"user":{"login":"tomizimobile","id":7967500,"avatar_url":"https://avatars.githubusercontent.com/u/7967500?v=3","gravatar_id":"","url":"https://api.github.com/users/tomizimobile","html_url":"https://github.com/tomizimobile","followers_url":"https://api.github.com/users/tomizimobile/followers","following_url":"https://api.github.com/users/tomizimobile/following{/other_user}","gists_url":"https://api.github.com/users/tomizimobile/gists{/gist_id}","starred_url":"https://api.github.com/users/tomizimobile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomizimobile/subscriptions","organizations_url":"https://api.github.com/users/tomizimobile/orgs","repos_url":"https://api.github.com/users/tomizimobile/repos","events_url":"https://api.github.com/users/tomizimobile/events{/privacy}","received_events_url":"https://api.github.com/users/tomizimobile/received_events","type":"User","site_admin":false},"created_at":"2016-11-15T14:00:19Z","updated_at":"2016-11-15T14:00:19Z","body":"Here's a sample project that shows this off. I quickly trimmed out and converted the view I had this issue with, which was using a much older version of ASDK, and jammed it in another project I've used to debug ASDK issues, so excuse the mess ;)\r\n\r\nAfter running the project, just hit the \"Show table\" button and play with the cell. It's a slider that locks at time intervals, and you'll see that the thumb image in the slider is off-center compared to the stack of views above it (and gets worse as you slide right). Changing the line of code as suggested in my first post lines things up nicely.\r\n\r\nThe code for that cell with the control is in TimeNode.swift\r\n\r\n[ASDK-crash.zip](https://github.com/facebook/AsyncDisplayKit/files/592096/ASDK-crash.zip)"}}
{"actor":{"display_login":"tomizimobile"}}