{"action":"created","issue":{"url":"https://api.github.com/repos/angular-ui/ui-sortable/issues/19","labels_url":"https://api.github.com/repos/angular-ui/ui-sortable/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui/ui-sortable/issues/19/comments","events_url":"https://api.github.com/repos/angular-ui/ui-sortable/issues/19/events","html_url":"https://github.com/angular-ui/ui-sortable/issues/19","id":16428332,"number":19,"title":"Horizontal lists work poorly due to a jQuery UI bug.","user":{"login":"nateroling","id":18673,"avatar_url":"https://avatars.githubusercontent.com/u/18673?v=3","gravatar_id":"","url":"https://api.github.com/users/nateroling","html_url":"https://github.com/nateroling","followers_url":"https://api.github.com/users/nateroling/followers","following_url":"https://api.github.com/users/nateroling/following{/other_user}","gists_url":"https://api.github.com/users/nateroling/gists{/gist_id}","starred_url":"https://api.github.com/users/nateroling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nateroling/subscriptions","organizations_url":"https://api.github.com/users/nateroling/orgs","repos_url":"https://api.github.com/users/nateroling/repos","events_url":"https://api.github.com/users/nateroling/events{/privacy}","received_events_url":"https://api.github.com/users/nateroling/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angular-ui/ui-sortable/labels/jquery-ui%20related","name":"jquery-ui related","color":"F46464"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/angular-ui/ui-sortable/milestones/1","html_url":"https://github.com/angular-ui/ui-sortable/milestones/v0.13.x","labels_url":"https://api.github.com/repos/angular-ui/ui-sortable/milestones/1/labels","id":641711,"number":1,"title":"v0.13.x","description":"","creator":{"login":"thgreasi","id":1295829,"avatar_url":"https://avatars.githubusercontent.com/u/1295829?v=3","gravatar_id":"","url":"https://api.github.com/users/thgreasi","html_url":"https://github.com/thgreasi","followers_url":"https://api.github.com/users/thgreasi/followers","following_url":"https://api.github.com/users/thgreasi/following{/other_user}","gists_url":"https://api.github.com/users/thgreasi/gists{/gist_id}","starred_url":"https://api.github.com/users/thgreasi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thgreasi/subscriptions","organizations_url":"https://api.github.com/users/thgreasi/orgs","repos_url":"https://api.github.com/users/thgreasi/repos","events_url":"https://api.github.com/users/thgreasi/events{/privacy}","received_events_url":"https://api.github.com/users/thgreasi/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":12,"state":"closed","created_at":"2014-04-27T18:36:28Z","updated_at":"2014-10-14T20:05:22Z","due_on":null,"closed_at":"2014-10-14T20:04:24Z"},"comments":11,"created_at":"2013-07-06T08:08:46Z","updated_at":"2015-03-12T10:16:20Z","closed_at":"2014-10-14T20:05:22Z","body":"Horizontal sortable lists work poorly. This is because jQueryUI doesn't detect them as being horizontal.\r\n\r\nDue to a bug in jQueryUI (http://bugs.jqueryui.com/ticket/7498), empty lists will never be considered horizontal.\r\n\r\nWhen the sortable is created by Angular, the list is always empty. Thus, never detected as horizontal.\r\n\r\n\r\n\r\nAs an ugly workaround, you can set up a start listener to set the floating property manually, and sorting will work smoothly again:\r\n\r\n```javascript\r\n $scope.sortableOptions = {\r\n    start: function(e, ui) {\r\n      $(e.target).data(\"ui-sortable\").floating = true;\r\n    },\r\n  };\r\n});\r\n```\r\n\r\n```html\r\n<div ng-model='items' ui-sortable='sortableOptions'>\r\n```"},"comment":{"url":"https://api.github.com/repos/angular-ui/ui-sortable/issues/comments/78453919","html_url":"https://github.com/angular-ui/ui-sortable/issues/19#issuecomment-78453919","issue_url":"https://api.github.com/repos/angular-ui/ui-sortable/issues/19","id":78453919,"user":{"login":"thgreasi","id":1295829,"avatar_url":"https://avatars.githubusercontent.com/u/1295829?v=3","gravatar_id":"","url":"https://api.github.com/users/thgreasi","html_url":"https://github.com/thgreasi","followers_url":"https://api.github.com/users/thgreasi/followers","following_url":"https://api.github.com/users/thgreasi/following{/other_user}","gists_url":"https://api.github.com/users/thgreasi/gists{/gist_id}","starred_url":"https://api.github.com/users/thgreasi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thgreasi/subscriptions","organizations_url":"https://api.github.com/users/thgreasi/orgs","repos_url":"https://api.github.com/users/thgreasi/repos","events_url":"https://api.github.com/users/thgreasi/events{/privacy}","received_events_url":"https://api.github.com/users/thgreasi/received_events","type":"User","site_admin":false},"created_at":"2015-03-12T10:16:20Z","updated_at":"2015-03-12T10:16:20Z","body":"Added a notice to README with a2584246123c866bf16642ccb747cfa5b0a48dc5\r\nsince [~~jquery-ui issue  7498~~](http://bugs.jqueryui.com/ticket/7498) was resolved in jquery-ui v1.11.4.\r\nThanks for all your contributions in this issue."}}