diff options
author | Mario Vavti <mario@mariovavti.com> | 2016-02-02 12:40:40 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2016-02-02 12:40:40 +0100 |
commit | f1245206ceadd60fec4bd00948c115f74ad6dbd7 (patch) | |
tree | 3283f7764ab05e7f2cf00abaf712364a200832a6 /view/js | |
parent | 7f453949a17f4d3cd755ab5fc96be21396c9cc91 (diff) | |
download | volse-hubzilla-f1245206ceadd60fec4bd00948c115f74ad6dbd7.tar.gz volse-hubzilla-f1245206ceadd60fec4bd00948c115f74ad6dbd7.tar.bz2 volse-hubzilla-f1245206ceadd60fec4bd00948c115f74ad6dbd7.zip |
change aside width to reflect recent widget style changes
Diffstat (limited to 'view/js')
-rw-r--r-- | view/js/main.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/view/js/main.js b/view/js/main.js index 220898efd..2b13acc3d 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -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, |