{"action":"created","issue":{"url":"https://api.github.com/repos/liabru/jquery-match-height/issues/59","labels_url":"https://api.github.com/repos/liabru/jquery-match-height/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/liabru/jquery-match-height/issues/59/comments","events_url":"https://api.github.com/repos/liabru/jquery-match-height/issues/59/events","html_url":"https://github.com/liabru/jquery-match-height/issues/59","id":64505970,"number":59,"title":"Make all other elements match the height of a specified element","user":{"login":"afmab","id":6852304,"avatar_url":"https://avatars.githubusercontent.com/u/6852304?v=3","gravatar_id":"","url":"https://api.github.com/users/afmab","html_url":"https://github.com/afmab","followers_url":"https://api.github.com/users/afmab/followers","following_url":"https://api.github.com/users/afmab/following{/other_user}","gists_url":"https://api.github.com/users/afmab/gists{/gist_id}","starred_url":"https://api.github.com/users/afmab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afmab/subscriptions","organizations_url":"https://api.github.com/users/afmab/orgs","repos_url":"https://api.github.com/users/afmab/repos","events_url":"https://api.github.com/users/afmab/events{/privacy}","received_events_url":"https://api.github.com/users/afmab/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-26T11:36:28Z","updated_at":"2015-03-30T09:07:23Z","closed_at":"2015-03-29T19:05:56Z","body":"I have a requirement where I need to be able to specify a target element, and then rather than all elements matching the row's maximum height, they will match the target's height.\r\n\r\nFor now I have added a ```data-mh-target``` attribute to the relevant element and then modified the iteration at line 197 so that it does the following, which seems to work okay.\r\n\r\n```javascript\r\n$.each(rows, function(key, row) {\r\n            var $row = $(row),\r\n                maxHeight = 0,\r\n\t\t\t\ttargetExists = false;\r\n\r\n            // skip apply to rows with only one item\r\n            if (opts.byRow && $row.length <= 1) {\r\n                $row.css(opts.property, '');\r\n                return;\r\n            }\r\n\t\t\t\r\n            // iterate the row and find the max height\r\n\t        $row.each(function() {\r\n\t\t        if (targetExists)\r\n\t\t        \treturn;\r\n\t\t\t\t\r\n                var $that = $(this),\r\n                    display = $that.css('display') === 'inline-block' ? 'inline-block' : 'block';\r\n\r\n                // ensure we get the correct actual height (and not a previously set height value)\r\n                var css = { 'display': display };\r\n                css[opts.property] = '';\r\n                $that.css(css);\r\n\r\n\t\t        targetExists = $that.is(\"[data-mh-target]\");\r\n\r\n                // find the max height (including padding, but not margin)\r\n\t\t        if (targetExists || $that.outerHeight(false) > maxHeight)\r\n                    maxHeight = $that.outerHeight(false);\r\n\r\n                // revert display block\r\n                $that.css('display', '');\r\n            });\r\n```\r\n\r\nPlease can you confirm whether there's an existing way for me to achieve the above, or if not whether the functionality above could be added?\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/liabru/jquery-match-height/issues/comments/87603544","html_url":"https://github.com/liabru/jquery-match-height/issues/59#issuecomment-87603544","issue_url":"https://api.github.com/repos/liabru/jquery-match-height/issues/59","id":87603544,"user":{"login":"afmab","id":6852304,"avatar_url":"https://avatars.githubusercontent.com/u/6852304?v=3","gravatar_id":"","url":"https://api.github.com/users/afmab","html_url":"https://github.com/afmab","followers_url":"https://api.github.com/users/afmab/followers","following_url":"https://api.github.com/users/afmab/following{/other_user}","gists_url":"https://api.github.com/users/afmab/gists{/gist_id}","starred_url":"https://api.github.com/users/afmab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afmab/subscriptions","organizations_url":"https://api.github.com/users/afmab/orgs","repos_url":"https://api.github.com/users/afmab/repos","events_url":"https://api.github.com/users/afmab/events{/privacy}","received_events_url":"https://api.github.com/users/afmab/received_events","type":"User","site_admin":false},"created_at":"2015-03-30T09:07:23Z","updated_at":"2015-03-30T09:07:23Z","body":"I've tested the latest version and can confirm it's working. Thanks for your speedy response, and thanks for the plugin - very handy!"}}