{"action":"created","issue":{"url":"https://api.github.com/repos/twbs/bootstrap/issues/2274","repository_url":"https://api.github.com/repos/twbs/bootstrap","labels_url":"https://api.github.com/repos/twbs/bootstrap/issues/2274/labels{/name}","comments_url":"https://api.github.com/repos/twbs/bootstrap/issues/2274/comments","events_url":"https://api.github.com/repos/twbs/bootstrap/issues/2274/events","html_url":"https://github.com/twbs/bootstrap/issues/2274","id":3392435,"number":2274,"title":"bootstrap collapse does not work with dynamic content","user":{"login":"waynebrantley","id":157082,"avatar_url":"https://avatars.githubusercontent.com/u/157082?v=3","gravatar_id":"","url":"https://api.github.com/users/waynebrantley","html_url":"https://github.com/waynebrantley","followers_url":"https://api.github.com/users/waynebrantley/followers","following_url":"https://api.github.com/users/waynebrantley/following{/other_user}","gists_url":"https://api.github.com/users/waynebrantley/gists{/gist_id}","starred_url":"https://api.github.com/users/waynebrantley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/waynebrantley/subscriptions","organizations_url":"https://api.github.com/users/waynebrantley/orgs","repos_url":"https://api.github.com/users/waynebrantley/repos","events_url":"https://api.github.com/users/waynebrantley/events{/privacy}","received_events_url":"https://api.github.com/users/waynebrantley/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/twbs/bootstrap/labels/js","name":"js","color":"ffc40d"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2012-02-26T18:57:21Z","updated_at":"2016-05-10T06:33:41Z","closed_at":"2012-03-22T05:15:24Z","body":"When you first click the link to open the collapsed area, the content is loaded - but the height is determined to be 0, if the request takes any time.   Clicking the link to close and open again causes the loaded content to be shown - because the content was already there and the height is correct.\r\n\r\nhttp://jsfiddle.net/waynebrantley/22pqk/\r\n"},"comment":{"url":"https://api.github.com/repos/twbs/bootstrap/issues/comments/218070650","html_url":"https://github.com/twbs/bootstrap/issues/2274#issuecomment-218070650","issue_url":"https://api.github.com/repos/twbs/bootstrap/issues/2274","id":218070650,"user":{"login":"martynlesbirel","id":4401910,"avatar_url":"https://avatars.githubusercontent.com/u/4401910?v=3","gravatar_id":"","url":"https://api.github.com/users/martynlesbirel","html_url":"https://github.com/martynlesbirel","followers_url":"https://api.github.com/users/martynlesbirel/followers","following_url":"https://api.github.com/users/martynlesbirel/following{/other_user}","gists_url":"https://api.github.com/users/martynlesbirel/gists{/gist_id}","starred_url":"https://api.github.com/users/martynlesbirel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martynlesbirel/subscriptions","organizations_url":"https://api.github.com/users/martynlesbirel/orgs","repos_url":"https://api.github.com/users/martynlesbirel/repos","events_url":"https://api.github.com/users/martynlesbirel/events{/privacy}","received_events_url":"https://api.github.com/users/martynlesbirel/received_events","type":"User","site_admin":false},"created_at":"2016-05-10T06:33:41Z","updated_at":"2016-05-10T06:33:41Z","body":"I've got a collapsible panel whose content is solely dynamically generated. It contains a list of notes generated by the user or retrieved from a back end database. The only way I can get a panel to work is if I set an explicit height on the first element within the panel. `height: auto` doesn't work for me.\r\n\r\nMy next step is going to be trying to calculate and explicit size while collapsing and apply it otherwise completely rethink the interface as this limitation is a bit crippling."}}