--- loncom/interface/loncommon.pm 2023/11/18 21:50:06 1.1420 +++ loncom/interface/loncommon.pm 2023/11/19 21:28:17 1.1421 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common routines # -# $Id: loncommon.pm,v 1.1420 2023/11/18 21:50:06 raeburn Exp $ +# $Id: loncommon.pm,v 1.1421 2023/11/19 21:28:17 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -2498,7 +2498,12 @@ sub iframe_wrapper_resizejs { var offset = $offset; var height = 0; var hdrtop = 0; - if (\$('div.LC_head_subbox:first').length) { + if (\$('div.LC_menus_content:first').length) { + if (\$('div.LC_menus_content:first').hasClass ("shown")) { + header = \$('div.LC_menus_content:first'); + offset = 9; + } + } else if (\$('div.LC_head_subbox:first').length) { header = \$('div.LC_head_subbox:first'); offset = 9; } else { @@ -6878,10 +6883,21 @@ sub bodytag { $bodytag .= Apache::lonhtmlcommon::scripttag( Apache::lonmenu::utilityfunctions($httphost), 'start'); + if ($args->{'collapsible_header'}) { + my $alttext = &mt('menu state: collapsed'); + my $tooltip = &mt('display standard menus'); + $bodytag .= <<"END"; +
+
+$alttext
+
'; + } return $bodytag; } @@ -7133,6 +7152,14 @@ form, .inline { display: inline; } +.LC_menus_content.shown{ + display: inline; +} + +.LC_menus_content.hidden { + display: none; +} + .LC_right { text-align:right; } @@ -7153,6 +7180,12 @@ form, .inline { width:400px; } +#LC_collapsible_separator { + border: 1px solid black; + width: 99.9%; + height: 0px; +} + .LC_iframecontainer { width: 98%; margin: 0;