{"action":"closed","issue":{"url":"https://api.github.com/repos/sachinchoolur/lightslider/issues/154","labels_url":"https://api.github.com/repos/sachinchoolur/lightslider/issues/154/labels{/name}","comments_url":"https://api.github.com/repos/sachinchoolur/lightslider/issues/154/comments","events_url":"https://api.github.com/repos/sachinchoolur/lightslider/issues/154/events","html_url":"https://github.com/sachinchoolur/lightslider/issues/154","id":97703771,"number":154,"title":"Getting li width when using autowidth and own li style","user":{"login":"diogotoscano","id":9253058,"avatar_url":"https://avatars.githubusercontent.com/u/9253058?v=3","gravatar_id":"","url":"https://api.github.com/users/diogotoscano","html_url":"https://github.com/diogotoscano","followers_url":"https://api.github.com/users/diogotoscano/followers","following_url":"https://api.github.com/users/diogotoscano/following{/other_user}","gists_url":"https://api.github.com/users/diogotoscano/gists{/gist_id}","starred_url":"https://api.github.com/users/diogotoscano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diogotoscano/subscriptions","organizations_url":"https://api.github.com/users/diogotoscano/orgs","repos_url":"https://api.github.com/users/diogotoscano/repos","events_url":"https://api.github.com/users/diogotoscano/events{/privacy}","received_events_url":"https://api.github.com/users/diogotoscano/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-28T13:13:27Z","updated_at":"2015-10-24T16:35:00Z","closed_at":"2015-10-24T16:35:00Z","body":"Instead of getting the li width + slideMargin, in lightslider.js on line 143 i change from:\r\nw += (parseInt($children.eq(i).width()) + settings.slideMargin);\r\nTo:\r\nw += (parseInt($children.eq(i).outerWidth()) + parseInt($children.eq(i).css('marginLeft')) + parseInt($children.eq(i).css('marginRight')));\r\n\r\nGetting the outer width + the margins. With this the user can user dynamic sizes with padding + margin.\r\nThe old code was hidden/breaking the line with new li added dynamically.\r\n"}}