<script>
$(document).ready(function() {
var w = $('.wiki-content .contentLayout2 .confluence-embedded-file-wrapper img');
var wHeight = w.height(.css('width', '100%');
$('.wiki-content .contentLayout2').css('margin-top', wHeight + 'px');
w .confluence-embedded-file-wrapper').css({
'position' : 'absolute',
'top' : '40px',
'left' : '0',
'width' : '100%',
'overflow' : 'hidden'
});
});
$(window).resize(function() {
var h = $('.wiki-content .contentLayout2 .confluence-embedded-file-wrapper img').height();
$('.wiki-content .contentLayout2').css('widthmargin-top', height + '100%px');
});
</script> |