This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function sizeSVG($svg){ | |
var max_x = 0; | |
$svg.find('*').each(function(){ | |
var bounding_rect = $(this)[0].getBoundingClientRect(); | |
var x2 = bounding_rect.top + bounding_rect.height; | |
if(x2 > max_x){ | |
max_x = x2; | |
} | |
}); | |
$svg.css('height', max_x); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
components: | |
layout: | |
instances: | |
article: | |
head: head | |
main: main | |
bottom: | |
- | |
_ref: /components/ad/instances/thecut-bottomLeaderboardDesktopArticle | |
- |