--- loncom/interface/loncommon.pm 2023/11/26 20:47:16 1.1422 +++ loncom/interface/loncommon.pm 2023/11/27 23:24:05 1.1423 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common routines # -# $Id: loncommon.pm,v 1.1422 2023/11/26 20:47:16 raeburn Exp $ +# $Id: loncommon.pm,v 1.1423 2023/11/27 23:24:05 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -2501,7 +2501,7 @@ sub iframe_wrapper_resizejs { if (\$('div.LC_menus_content:first').length) { if (\$('div.LC_menus_content:first').hasClass ("shown")) { header = \$('div.LC_menus_content:first'); - offset = 9; + offset = 12; } } else if (\$('div.LC_head_subbox:first').length) { header = \$('div.LC_head_subbox:first'); @@ -6887,7 +6887,7 @@ sub bodytag { $bodytag .= Apache::lonhtmlcommon::scripttag( Apache::lonmenu::utilityfunctions($httphost), 'start'); - if ($args->{'collapsible_header'}) { + if ($args->{'collapsible_header'} ne '') { my $alttext = &mt('menu state: collapsed'); my $tooltip = &mt('display standard menus'); $bodytag .= <<"END"; @@ -6960,8 +6960,9 @@ END $bodytag .= '
'; $bodytag .= Apache::lonhtmlcommon::scripttag('', 'end'); } - if ($args->{'collapsible_header'}) { - $bodytag .= '
'. + if ($args->{'collapsible_header'} ne '') { + $bodytag .= $args->{'collapsible_header'}. + '
'. ''; } return $bodytag;