{"action":"closed","issue":{"url":"https://api.github.com/repos/glidejs/glide/issues/167","repository_url":"https://api.github.com/repos/glidejs/glide","labels_url":"https://api.github.com/repos/glidejs/glide/issues/167/labels{/name}","comments_url":"https://api.github.com/repos/glidejs/glide/issues/167/comments","events_url":"https://api.github.com/repos/glidejs/glide/issues/167/events","html_url":"https://github.com/glidejs/glide/issues/167","id":182482688,"number":167,"title":"Update paddings (and other options) on glider refresh","user":{"login":"sehsarah","id":1064684,"avatar_url":"https://avatars0.githubusercontent.com/u/1064684?v=4","gravatar_id":"","url":"https://api.github.com/users/sehsarah","html_url":"https://github.com/sehsarah","followers_url":"https://api.github.com/users/sehsarah/followers","following_url":"https://api.github.com/users/sehsarah/following{/other_user}","gists_url":"https://api.github.com/users/sehsarah/gists{/gist_id}","starred_url":"https://api.github.com/users/sehsarah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sehsarah/subscriptions","organizations_url":"https://api.github.com/users/sehsarah/orgs","repos_url":"https://api.github.com/users/sehsarah/repos","events_url":"https://api.github.com/users/sehsarah/events{/privacy}","received_events_url":"https://api.github.com/users/sehsarah/received_events","type":"User","site_admin":false},"labels":[{"id":365052590,"url":"https://api.github.com/repos/glidejs/glide/labels/improvement","name":"improvement","color":"fbca04","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/glidejs/glide/milestones/9","html_url":"https://github.com/glidejs/glide/milestone/9","labels_url":"https://api.github.com/repos/glidejs/glide/milestones/9/labels","id":1642858,"number":9,"title":"3.0.0","description":"","creator":{"login":"jedrzejchalubek","id":3652932,"avatar_url":"https://avatars2.githubusercontent.com/u/3652932?v=4","gravatar_id":"","url":"https://api.github.com/users/jedrzejchalubek","html_url":"https://github.com/jedrzejchalubek","followers_url":"https://api.github.com/users/jedrzejchalubek/followers","following_url":"https://api.github.com/users/jedrzejchalubek/following{/other_user}","gists_url":"https://api.github.com/users/jedrzejchalubek/gists{/gist_id}","starred_url":"https://api.github.com/users/jedrzejchalubek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jedrzejchalubek/subscriptions","organizations_url":"https://api.github.com/users/jedrzejchalubek/orgs","repos_url":"https://api.github.com/users/jedrzejchalubek/repos","events_url":"https://api.github.com/users/jedrzejchalubek/events{/privacy}","received_events_url":"https://api.github.com/users/jedrzejchalubek/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":9,"state":"open","created_at":"2016-03-14T13:15:27Z","updated_at":"2018-04-06T07:35:56Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2016-10-12T09:52:17Z","updated_at":"2018-04-06T07:35:56Z","closed_at":"2018-04-06T07:35:56Z","author_association":"NONE","body":"Would be cool if on `glide_api.refresh()` you could update certain options, for example `paddings`\n\nThis would enable things like better transitions to mobile layouts, for instance:\n- for desktop I use `paddings: '25%'` to enable 2 slides up at once \n- for mobile/small screen, I use `paddings: '0%'` to enable 1 slide up at this size (otherwise 2 up at once makes slides appear very skinny)\n\nWhen resizing the window I would like to be able to change `paddings` if the window size changes from big to small and vice versa\n\nA workaround i'm using at the moment is to destroy and recreate a new glider with the different `paddings` option, hax\n\nThe `.refresh()` method seems like a good place to be able to do this as `setup` is called within. But even any way of being able to update `paddings` after init of glider would be 👌\n\nThoughts?\n"}}
{"actor":{"display_login":"jedrzejchalubek"}}