{"action":"created","issue":{"url":"https://api.github.com/repos/amazeui/amazeui/issues/879","repository_url":"https://api.github.com/repos/amazeui/amazeui","labels_url":"https://api.github.com/repos/amazeui/amazeui/issues/879/labels{/name}","comments_url":"https://api.github.com/repos/amazeui/amazeui/issues/879/comments","events_url":"https://api.github.com/repos/amazeui/amazeui/issues/879/events","html_url":"https://github.com/amazeui/amazeui/issues/879","id":158631321,"number":879,"title":"怎样获取slider组件的高度？","user":{"login":"swmwlm","id":10164764,"avatar_url":"https://avatars.githubusercontent.com/u/10164764?v=3","gravatar_id":"","url":"https://api.github.com/users/swmwlm","html_url":"https://github.com/swmwlm","followers_url":"https://api.github.com/users/swmwlm/followers","following_url":"https://api.github.com/users/swmwlm/following{/other_user}","gists_url":"https://api.github.com/users/swmwlm/gists{/gist_id}","starred_url":"https://api.github.com/users/swmwlm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swmwlm/subscriptions","organizations_url":"https://api.github.com/users/swmwlm/orgs","repos_url":"https://api.github.com/users/swmwlm/repos","events_url":"https://api.github.com/users/swmwlm/events{/privacy}","received_events_url":"https://api.github.com/users/swmwlm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-06T09:04:48Z","updated_at":"2016-06-07T01:35:39Z","closed_at":null,"body":"当组件slider渲染结束后，想获取该slider组件的高度，一直获取的为0，求解决方案\r\n\r\n代码如下\r\n\r\n```html\r\n<!DOCTYPE html>\r\n<html lang=\"en\">\r\n\r\n<head>\r\n    <meta charset=\"UTF-8\">\r\n    <title>Document</title>\r\n    <link rel=\"stylesheet\" href=\"http://cdn.amazeui.org/amazeui/2.7.0/css/amazeui.min.css\">\r\n    <script type=\"text/javascript\" src=\"http://libs.baidu.com/jquery/1.9.1/jquery.min.js\"></script>\r\n    <script type=\"text/javascript\" src=\"http://cdn.amazeui.org/amazeui/2.7.0/js/amazeui.min.js\"></script>\r\n    <script type=\"text/javascript\" src=\"http://cdn.amazeui.org/amazeui/2.7.0/js/amazeui.widgets.helper.min.js\"></script>\r\n    <script src=\"https://npmcdn.com/imagesloaded@4.1/imagesloaded.pkgd.min.js\"></script>\r\n    <script type=\"text/javascript\">\r\n    /*$('#sliderDiv').imagesLoaded(function() {\r\n            // images have loaded\r\n            console.log($('#sliderDiv').height());\r\n        });*/\r\n    $('#sliderDiv').imagesLoaded().done(function(instance) {\r\n        console.log('DONE  - all images have been successfully loaded');\r\n        console.log($('#sliderDiv').height());\r\n    });\r\n    </script>\r\n</head>\r\n\r\n<body>\r\n    <div id=\"sliderDiv\" data-am-widget=\"slider\" class=\"am-slider am-slider-default\" data-am-slider='{}'>\r\n        <ul class=\"am-slides\">\r\n            <li>\r\n                <img src=\"http://s.amazeui.org/media/i/demos/bing-1.jpg\">\r\n            </li>\r\n            <li>\r\n                <img src=\"http://s.amazeui.org/media/i/demos/bing-2.jpg\">\r\n            </li>\r\n            <li>\r\n                <img src=\"http://s.amazeui.org/media/i/demos/bing-3.jpg\">\r\n            </li>\r\n            <li>\r\n                <img src=\"http://s.amazeui.org/media/i/demos/bing-4.jpg\">\r\n            </li>\r\n        </ul>\r\n    </div>\r\n</body>\r\n\r\n</html>\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/amazeui/amazeui/issues/comments/224137943","html_url":"https://github.com/amazeui/amazeui/issues/879#issuecomment-224137943","issue_url":"https://api.github.com/repos/amazeui/amazeui/issues/879","id":224137943,"user":{"login":"minwe","id":4370770,"avatar_url":"https://avatars.githubusercontent.com/u/4370770?v=3","gravatar_id":"","url":"https://api.github.com/users/minwe","html_url":"https://github.com/minwe","followers_url":"https://api.github.com/users/minwe/followers","following_url":"https://api.github.com/users/minwe/following{/other_user}","gists_url":"https://api.github.com/users/minwe/gists{/gist_id}","starred_url":"https://api.github.com/users/minwe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minwe/subscriptions","organizations_url":"https://api.github.com/users/minwe/orgs","repos_url":"https://api.github.com/users/minwe/repos","events_url":"https://api.github.com/users/minwe/events{/privacy}","received_events_url":"https://api.github.com/users/minwe/received_events","type":"User","site_admin":false},"created_at":"2016-06-07T01:35:39Z","updated_at":"2016-06-07T01:35:39Z","body":"```javascript\r\n$('#sliderDiv').flexslider('h')\r\n```\r\n\r\n可以用这个。"}}
{"actor":{"display_login":"minwe"}}