change aside width to reflect recent widget style changes

This commit is contained in:
Mario Vavti
2016-02-02 12:40:40 +01:00
parent 7f453949a1
commit f1245206ce
3 changed files with 6 additions and 3 deletions

View File

@@ -640,7 +640,10 @@ function collapseHeight() {
var orgHeight = parseInt($(this).css('height'));
if(orgHeight > divmore_height) {
if(! $(this).hasClass('divmore')) {
if($(window).scrollTop() + ($(window).height() - divmore_height) < $(this).offset().top) {
var trigger = $(window).scrollTop() + ($(window).height() - divmore_height) < $(this).offset().top ? true : false;
if(trigger) {
$(this).readmore({
speed: 0,
heightMargin: 50,