Browse files

make sure content column is at least as long as sidebar

  • Loading branch information...
1 parent 2329bcd commit 3f7dd17379d124acdcf7131ba77716d87360cda8 @splitbrain committed Jun 30, 2012
Showing with 7 additions and 0 deletions.
  1. +7 −0 lib/tpl/dokuwiki/script.js
View
7 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());
+ }
});

0 comments on commit 3f7dd17

Please sign in to comment.