diff options
author | Andreas Gohr <andi@splitbrain.org> | 2012-06-30 15:58:32 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2012-06-30 15:58:32 +0200 |
commit | 3f7dd17379d124acdcf7131ba77716d87360cda8 (patch) | |
tree | 9d4b50b3017b0d8429f09f00c84966ae8701e3f1 | |
parent | 2329bcd3221cf684db3352d71182139b7d9e5281 (diff) | |
download | rpg-3f7dd17379d124acdcf7131ba77716d87360cda8.tar.gz rpg-3f7dd17379d124acdcf7131ba77716d87360cda8.tar.bz2 |
make sure content column is at least as long as sidebar
-rw-r--r-- | lib/tpl/dokuwiki/script.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/tpl/dokuwiki/script.js b/lib/tpl/dokuwiki/script.js index 069f2526f..677e2f53b 100644 --- a/lib/tpl/dokuwiki/script.js +++ b/lib/tpl/dokuwiki/script.js @@ -65,4 +65,11 @@ jQuery(function(){ resizeTimer = setTimeout(tpl_dokuwiki_mobile,200); } ); + + // increase sidebar length to match content (desktop mode only) + var $sb = jQuery('.desktop #dokuwiki__aside'); + if($sb.length) { + var $ct = jQuery('#dokuwiki__content div.page'); + if($sb.height() > $ct.height()) $ct.height($sb.height()); + } }); |