Skip to content
This repository
Browse code

make sure content column is at least as long as sidebar

  • Loading branch information...
commit 3f7dd17379d124acdcf7131ba77716d87360cda8 1 parent 2329bcd
Andreas Gohr authored

Showing 1 changed file with 7 additions and 0 deletions. Show diff stats Hide diff stats

  1. 7  lib/tpl/dokuwiki/script.js
7  lib/tpl/dokuwiki/script.js
@@ -65,4 +65,11 @@ jQuery(function(){
65 65
             resizeTimer = setTimeout(tpl_dokuwiki_mobile,200);
66 66
         }
67 67
     );
  68
+
  69
+    // increase sidebar length to match content (desktop mode only)
  70
+    var $sb = jQuery('.desktop #dokuwiki__aside');
  71
+    if($sb.length) {
  72
+        var $ct = jQuery('#dokuwiki__content div.page');
  73
+        if($sb.height() > $ct.height()) $ct.height($sb.height());
  74
+    }
68 75
 });

0 notes on commit 3f7dd17

Please sign in to comment.
Something went wrong with that request. Please try again.