Commit c6bb36c2 authored by Eric Bremner's avatar Eric Bremner
Browse files

ISTWCMS-1978: Making the twitter feed the same height as the content.

parent 7fb422db
......@@ -28,6 +28,21 @@
if($('.biblio-filter-status').length > 0) {
$('#biblio-search-form').append($('.biblio-filter-status'));
}
// If there is a twitter feed in the sidebar, set the max-height to the height of the content, only if the content height is larger than the preset max-height.
if($('.twitter-sidebar-wrapper').length > 0) {
if($('#content').length > 0) {
if ($('#content').height() > $('.twitter-sidebar-wrapper').css('max-height').replace('px', '')) {
$('.twitter-sidebar-wrapper').css('max-height', $('#content').height() + 'px');
}
}
if($('.personal_frontpage_uw_scholar').length > 0) {
if ($('.personal_frontpage_uw_scholar').height() > $('.twitter-sidebar-wrapper').css('max-height').replace('px', '')) {
$('.twitter-sidebar-wrapper').css('max-height', $('.personal_frontpage_uw_scholar').height() + 'px');
}
}
}
}
};
})(jQuery);
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment