MrClow/dokuwiki-template-2011 — Issue #19: auto adjust page height for large sidebars?
Author: splitbrain
Created: 2012-01-08 12:10:57+00:00
State: open

Somewhat related to #17: should we increase the length of the page content when it is shorter than the sidebar? I think it looks better.

This could be easily achieved with the following JavaScript:

```
jQuery(function(){
var $sb = jQuery('#dokuwiki__aside');
if(!$sb.length) return;
var $ct = jQuery('#dokuwiki__content div.page');
if($sb.height() > $ct.height()) $ct.height($sb.height());
});
```