{"action":"created","issue":{"url":"https://api.github.com/repos/ashleydw/lightbox/issues/122","labels_url":"https://api.github.com/repos/ashleydw/lightbox/issues/122/labels{/name}","comments_url":"https://api.github.com/repos/ashleydw/lightbox/issues/122/comments","events_url":"https://api.github.com/repos/ashleydw/lightbox/issues/122/events","html_url":"https://github.com/ashleydw/lightbox/issues/122","id":94127225,"number":122,"title":"Wait for Image loaded to calc height","user":{"login":"ximex","id":1078640,"avatar_url":"https://avatars.githubusercontent.com/u/1078640?v=3","gravatar_id":"","url":"https://api.github.com/users/ximex","html_url":"https://github.com/ximex","followers_url":"https://api.github.com/users/ximex/followers","following_url":"https://api.github.com/users/ximex/following{/other_user}","gists_url":"https://api.github.com/users/ximex/gists{/gist_id}","starred_url":"https://api.github.com/users/ximex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ximex/subscriptions","organizations_url":"https://api.github.com/users/ximex/orgs","repos_url":"https://api.github.com/users/ximex/repos","events_url":"https://api.github.com/users/ximex/events{/privacy}","received_events_url":"https://api.github.com/users/ximex/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-09T19:03:24Z","updated_at":"2015-08-17T14:46:50Z","closed_at":null,"body":"https://github.com/Admidio/admidio/issues/67\r\n\r\n`ekko-lightbox.js Line 315ff`\r\n```js\r\npreloadImage: function(src, onLoadShowImage) {\r\n  var img,\r\n    _this = this;\r\n  img = new Image();\r\n  if ((onLoadShowImage == null) || onLoadShowImage === true) {\r\n    img.onload = function() {\r\n      var image;\r\n      image = $('<img />');\r\n      image.attr('src', img.src);\r\n      image.addClass('img-responsive');\r\n      _this.lightbox_body.html(image);\r\n      if (_this.modal_arrows) {\r\n        _this.modal_arrows.css('display', 'block');\r\n      }\r\n      // Start Fix\r\n      image.load(function() {\r\n        _this.resize(img.width);\r\n      });\r\n      // End Fix\r\n      return _this.options.onContentLoaded.call(_this);\r\n    };\r\n    img.onerror = function() {\r\n      return _this.error('Failed to load image: ' + src);\r\n    };\r\n  }\r\n  img.src = src;\r\n  return img;\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/ashleydw/lightbox/issues/comments/131847664","html_url":"https://github.com/ashleydw/lightbox/issues/122#issuecomment-131847664","issue_url":"https://api.github.com/repos/ashleydw/lightbox/issues/122","id":131847664,"user":{"login":"ximex","id":1078640,"avatar_url":"https://avatars.githubusercontent.com/u/1078640?v=3","gravatar_id":"","url":"https://api.github.com/users/ximex","html_url":"https://github.com/ximex","followers_url":"https://api.github.com/users/ximex/followers","following_url":"https://api.github.com/users/ximex/following{/other_user}","gists_url":"https://api.github.com/users/ximex/gists{/gist_id}","starred_url":"https://api.github.com/users/ximex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ximex/subscriptions","organizations_url":"https://api.github.com/users/ximex/orgs","repos_url":"https://api.github.com/users/ximex/repos","events_url":"https://api.github.com/users/ximex/events{/privacy}","received_events_url":"https://api.github.com/users/ximex/received_events","type":"User","site_admin":false},"created_at":"2015-08-17T14:46:50Z","updated_at":"2015-08-17T14:46:50Z","body":"#126 "}}