see if this works for getting rid of scrollbars

This commit is contained in:
friendica
2012-07-24 23:33:42 -07:00
parent 6911beca2f
commit 2534075afe
4 changed files with 136 additions and 29 deletions

View File

@@ -708,35 +708,6 @@ jQuery.timeago.settings.strings = {
numbers: tago17
};
//$('.wall-item-content').each(function() {
// var totalHeight = 0;
// $(this).children().each(function(){
// totalHeight += $(this).outerHeight(true); // true = include margins
// });
// if(totalHeight > 400) {
// $(this).css({'overflow-y':'hidden','max-height' : '400px'});
// }
// else {
// $(this).css('overflow-y','visible');
// }
// });
$('.wall-item-content').css({'overflow-y':'hidden','max-height' : '400px'});
$('.wall-item-content').focus(
function() {
$(this).css('overflow-y','visible')
});
$('.wall-item-content').focusout(
function() {
$(this).css( { 'overflow-y' : 'hidden','max-height' : '400px'});
}
);
$("abbr.wall-item-ago-time").timeago();
});