{"action":"created","issue":{"url":"https://api.github.com/repos/nolimits4web/swiper/issues/2534","repository_url":"https://api.github.com/repos/nolimits4web/swiper","labels_url":"https://api.github.com/repos/nolimits4web/swiper/issues/2534/labels{/name}","comments_url":"https://api.github.com/repos/nolimits4web/swiper/issues/2534/comments","events_url":"https://api.github.com/repos/nolimits4web/swiper/issues/2534/events","html_url":"https://github.com/nolimits4web/swiper/issues/2534","id":306184505,"number":2534,"title":"Vertical mode bug.","user":{"login":"Zver64","id":19332538,"avatar_url":"https://avatars1.githubusercontent.com/u/19332538?v=4","gravatar_id":"","url":"https://api.github.com/users/Zver64","html_url":"https://github.com/Zver64","followers_url":"https://api.github.com/users/Zver64/followers","following_url":"https://api.github.com/users/Zver64/following{/other_user}","gists_url":"https://api.github.com/users/Zver64/gists{/gist_id}","starred_url":"https://api.github.com/users/Zver64/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zver64/subscriptions","organizations_url":"https://api.github.com/users/Zver64/orgs","repos_url":"https://api.github.com/users/Zver64/repos","events_url":"https://api.github.com/users/Zver64/events{/privacy}","received_events_url":"https://api.github.com/users/Zver64/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-17T19:39:47Z","updated_at":"2018-03-18T15:18:40Z","closed_at":null,"author_association":"NONE","body":"<!--\r\n\r\nDo you want to ask a question? Are you looking for support? The Swiper forum (http://idangero.us/swiper/forum/) and Stack Overflow (http://stackoverflow.com/questions/tagged/swiper) are the best places for getting support\r\n\r\n-->\r\n\r\nThis is a (multiple allowed):\r\n* [x] bug\r\n* [ ] enhancement\r\n* [ ] feature-discussion (RFC)\r\n\r\n* Swiper Version: 4.2.0.\r\n* Platform/Target and Browser Versions: windows google chrome 64.0.3282.186.\r\n* https://jsfiddle.net/Geminis/8hzogg76/\r\n\r\n### What you did\r\nI copypasted the html from Getting Started With Swiper page and changed the slides to simple colored divs with different heights. I also set the width and the height if the slider itself as it has been done in the getting started guide. so the html is:\r\n```\r\n<!-- Slider main container -->\r\n<div class=\"swiper-container\">\r\n    <!-- Additional required wrapper -->\r\n    <div class=\"swiper-wrapper\">\r\n        <!-- Slides -->\r\n        <div class=\"swiper-slide\">\r\n        \t<div class=\"box-1\"></div>\r\n        </div>\r\n        <div class=\"swiper-slide\">\r\n        \t<div class=\"box-2\"></div>\r\n        </div>\r\n        <div class=\"swiper-slide\">\r\n        \t<div class=\"box-1\"></div>\r\n        </div>\r\n\r\n    </div>\r\n    <!-- If we need pagination -->\r\n    <div class=\"swiper-pagination\"></div>\r\n\r\n    <!-- If we need navigation buttons -->\r\n    <div class=\"swiper-button-prev\"></div>\r\n    <div class=\"swiper-button-next\"></div>\r\n\r\n    <!-- If we need scrollbar -->\r\n    <div class=\"swiper-scrollbar\"></div>\r\n</div>\r\n```\r\nThe js is:\r\n```\r\nvar mySwiper = new Swiper ('.swiper-container', {\r\n    // Optional parameters\r\n    direction: 'vertical',\r\n    loop: true,\r\n    \r\n  })\r\n```\r\nthe css is:\r\n```\r\n.swiper-container {\r\n    height: 300px;\r\n    width: 300px;\r\n}\r\n.box-1 {\r\n\theight: 100px;\r\n\tbackground-color: green;\r\n}\r\n.box-2 {\r\n\theight: 200px;\r\n\tbackground-color: red;\r\n}\r\n```\r\n\r\nHere is my jsFiddle https://jsfiddle.net/Geminis/8hzogg76/\r\n\r\n### Expected Behavior\r\n1)I expected the slider to be the same height as I had set in my css. \r\n\r\n\r\n### Actual Behavior\r\n1)The slider has different height and it's larger than I need.\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/nolimits4web/swiper/issues/comments/374007430","html_url":"https://github.com/nolimits4web/swiper/issues/2534#issuecomment-374007430","issue_url":"https://api.github.com/repos/nolimits4web/swiper/issues/2534","id":374007430,"user":{"login":"Zver64","id":19332538,"avatar_url":"https://avatars1.githubusercontent.com/u/19332538?v=4","gravatar_id":"","url":"https://api.github.com/users/Zver64","html_url":"https://github.com/Zver64","followers_url":"https://api.github.com/users/Zver64/followers","following_url":"https://api.github.com/users/Zver64/following{/other_user}","gists_url":"https://api.github.com/users/Zver64/gists{/gist_id}","starred_url":"https://api.github.com/users/Zver64/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zver64/subscriptions","organizations_url":"https://api.github.com/users/Zver64/orgs","repos_url":"https://api.github.com/users/Zver64/repos","events_url":"https://api.github.com/users/Zver64/events{/privacy}","received_events_url":"https://api.github.com/users/Zver64/received_events","type":"User","site_admin":false},"created_at":"2018-03-18T15:18:40Z","updated_at":"2018-03-18T15:18:40Z","author_association":"NONE","body":"@shashank1010 I changed it, but unfortunately nothing happened. "}}
{"actor":{"display_login":"Zver64"}}