{"action":"created","issue":{"url":"https://api.github.com/repos/Pixabay/jQuery-flexImages/issues/4","labels_url":"https://api.github.com/repos/Pixabay/jQuery-flexImages/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/Pixabay/jQuery-flexImages/issues/4/comments","events_url":"https://api.github.com/repos/Pixabay/jQuery-flexImages/issues/4/events","html_url":"https://github.com/Pixabay/jQuery-flexImages/issues/4","id":56354447,"number":4,"title":"Min-width for item","user":{"login":"bogdosarov","id":1942057,"avatar_url":"https://avatars.githubusercontent.com/u/1942057?v=3","gravatar_id":"","url":"https://api.github.com/users/bogdosarov","html_url":"https://github.com/bogdosarov","followers_url":"https://api.github.com/users/bogdosarov/followers","following_url":"https://api.github.com/users/bogdosarov/following{/other_user}","gists_url":"https://api.github.com/users/bogdosarov/gists{/gist_id}","starred_url":"https://api.github.com/users/bogdosarov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bogdosarov/subscriptions","organizations_url":"https://api.github.com/users/bogdosarov/orgs","repos_url":"https://api.github.com/users/bogdosarov/repos","events_url":"https://api.github.com/users/bogdosarov/events{/privacy}","received_events_url":"https://api.github.com/users/bogdosarov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-03T09:40:54Z","updated_at":"2015-02-03T10:02:12Z","closed_at":null,"body":"Hi. Thank you very much for this excellent plugin! Can you help my with min-width size of item.  I added minWidth option.\r\n```javascript\r\nvar o = $.extend({\r\n            container: '.item',\r\n            object: 'img',\r\n            rowHeight: 180,\r\n            maxRows: 0,\r\n            truncate: false,\r\n            minWidth: 180\r\n        }, options);\r\n```\r\n\r\nThen in function 'makeGrid' i do check \r\n```javascript\r\nvar tempWidth = Math.ceil(row[x][3]*ratio);\r\nnew_w = o.minWidth > tempWidth ? o.minWidth : tempWidth;\r\n```\r\nIt works, but it doesn't work in '_helper' function. \r\nWhen i insert code for verify in '_helper' function then i have broken grid."},"comment":{"url":"https://api.github.com/repos/Pixabay/jQuery-flexImages/issues/comments/72623735","html_url":"https://github.com/Pixabay/jQuery-flexImages/issues/4#issuecomment-72623735","issue_url":"https://api.github.com/repos/Pixabay/jQuery-flexImages/issues/4","id":72623735,"user":{"login":"SimonSteinberger","id":1267443,"avatar_url":"https://avatars.githubusercontent.com/u/1267443?v=3","gravatar_id":"","url":"https://api.github.com/users/SimonSteinberger","html_url":"https://github.com/SimonSteinberger","followers_url":"https://api.github.com/users/SimonSteinberger/followers","following_url":"https://api.github.com/users/SimonSteinberger/following{/other_user}","gists_url":"https://api.github.com/users/SimonSteinberger/gists{/gist_id}","starred_url":"https://api.github.com/users/SimonSteinberger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimonSteinberger/subscriptions","organizations_url":"https://api.github.com/users/SimonSteinberger/orgs","repos_url":"https://api.github.com/users/SimonSteinberger/repos","events_url":"https://api.github.com/users/SimonSteinberger/events{/privacy}","received_events_url":"https://api.github.com/users/SimonSteinberger/received_events","type":"User","site_admin":false},"created_at":"2015-02-03T10:02:12Z","updated_at":"2015-02-03T10:02:12Z","body":"This will probably cause other issues with the grid. When limiting the width, the image will get too high for this row. Maybe you can work with \"overflow: hidden\" to compensate for this. In any case it *might* be more complicated than one would expect.\r\n\r\nnew_w is a \"global\" variable inside the plugin - so inside the _helper it's the same as outside. So, I guess the grid may be broken because the image simply gets too high. If you like, you can provide a screenshot or a JSFiddle ..."}}