{"action":"created","issue":{"url":"https://api.github.com/repos/jquery/jqueryui.com/issues/125","labels_url":"https://api.github.com/repos/jquery/jqueryui.com/issues/125/labels{/name}","comments_url":"https://api.github.com/repos/jquery/jqueryui.com/issues/125/comments","events_url":"https://api.github.com/repos/jquery/jqueryui.com/issues/125/events","html_url":"https://github.com/jquery/jqueryui.com/issues/125","id":111266003,"number":125,"title":"Closing a bootstrap \"collapse\" element in the sortable \"start\" event doesn't resize the list item","user":{"login":"jasonpolites","id":764528,"avatar_url":"https://avatars.githubusercontent.com/u/764528?v=3","gravatar_id":"","url":"https://api.github.com/users/jasonpolites","html_url":"https://github.com/jasonpolites","followers_url":"https://api.github.com/users/jasonpolites/followers","following_url":"https://api.github.com/users/jasonpolites/following{/other_user}","gists_url":"https://api.github.com/users/jasonpolites/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonpolites/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonpolites/subscriptions","organizations_url":"https://api.github.com/users/jasonpolites/orgs","repos_url":"https://api.github.com/users/jasonpolites/repos","events_url":"https://api.github.com/users/jasonpolites/events{/privacy}","received_events_url":"https://api.github.com/users/jasonpolites/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-13T20:40:14Z","updated_at":"2015-10-13T22:10:26Z","closed_at":"2015-10-13T21:00:57Z","body":"(posting here until the Trac interface is back up (as per #122))\r\n\r\nI suspect this is a timing/ordering issue, but not sure if it's jquery-ui that's at fault or not.\r\n\r\nIf a list-item in a sortable list contains a [collapse](http://getbootstrap.com/javascript/#collapse) element that should close (hide) when the list item is moved, we can use the `start()` event in the sortable.  However, although the collapse element *does* collapse, the list-item doesn't resize accordingly.\r\n\r\nDemo of this here:\r\n\r\nhttp://www.bootply.com/kIM75OP9Ok\r\n\r\nIf you click \"Expand\" on one of the items, then drag it you will see it collapse but retain its expanded height.\r\n\r\nThe desired outcome is that the collapse completes fully before movement (or soon after start)"},"comment":{"url":"https://api.github.com/repos/jquery/jqueryui.com/issues/comments/147868581","html_url":"https://github.com/jquery/jqueryui.com/issues/125#issuecomment-147868581","issue_url":"https://api.github.com/repos/jquery/jqueryui.com/issues/125","id":147868581,"user":{"login":"jasonpolites","id":764528,"avatar_url":"https://avatars.githubusercontent.com/u/764528?v=3","gravatar_id":"","url":"https://api.github.com/users/jasonpolites","html_url":"https://github.com/jasonpolites","followers_url":"https://api.github.com/users/jasonpolites/followers","following_url":"https://api.github.com/users/jasonpolites/following{/other_user}","gists_url":"https://api.github.com/users/jasonpolites/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonpolites/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonpolites/subscriptions","organizations_url":"https://api.github.com/users/jasonpolites/orgs","repos_url":"https://api.github.com/users/jasonpolites/repos","events_url":"https://api.github.com/users/jasonpolites/events{/privacy}","received_events_url":"https://api.github.com/users/jasonpolites/received_events","type":"User","site_admin":false},"created_at":"2015-10-13T22:10:26Z","updated_at":"2015-10-13T22:10:26Z","body":"Hmm.. maybe it's the docs that are a little confusing here.  The description of the ```start()``` event is:\r\n\r\n> This event is triggered when sorting starts.\r\n\r\nBased on your response:\r\n\r\n> ...dimensions to be forced to the values prior to sorting\r\n\r\nIt's not clear whether ```start()``` fires *before* sorting starts or *after* sorting starts. \r\n\r\nIMO it would make sense for the ```start()``` event to fire *before* sorting starts which would allow any alteration of dimensions to occur before absolute positioning.  Ideally though, ```start()``` would actually be more like ```beforeStart()``` or ```beforeMove()``` to be explicit\r\n"}}