Skip to content
Snippets Groups Projects
Commit 9f6d88de authored by Anika Henke's avatar Anika Henke
Browse files

changed 'height' in JS to 'min-height'

parent d23e64f3
No related branches found
No related tags found
No related merge requests found
......@@ -130,7 +130,7 @@ dw_page = {
if(!state) state = 1;
// Assert that content instantly takes the whole space
$content.css('height', $content.height()).show();
$content.css('min-height', $content.height()).show();
// stop any running animation
$child.stop(true, true);
......
......@@ -7,7 +7,7 @@
* - tablet 481 - 979 (ostensibly for tablets in portrait mode)
* - phone <= 480
*/
var device_class = 'not yet known';
var device_class = ''; // not yet known
var device_classes = 'desktop mobile tablet phone';
function tpl_dokuwiki_mobile(){
......@@ -67,9 +67,9 @@ jQuery(function(){
);
// 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());
var $sidebar = jQuery('.desktop #dokuwiki__aside');
if($sidebar.length) {
var $content = jQuery('#dokuwiki__content div.page');
$content.css('min-height', $sidebar.height());
}
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment