From 3f7dd17379d124acdcf7131ba77716d87360cda8 Mon Sep 17 00:00:00 2001
From: Andreas Gohr <andi@splitbrain.org>
Date: Sat, 30 Jun 2012 15:58:32 +0200
Subject: [PATCH] make sure content column is at least as long as sidebar

---
 lib/tpl/dokuwiki/script.js | 7 +++++++
 1 file changed, 7 insertions(+)

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());
+    }
 });
-- 
GitLab