--- rat/lonwrapper.pm 2009/10/21 23:47:11 1.36 +++ rat/lonwrapper.pm 2009/11/24 05:37:35 1.37 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Wrapper for external and binary files as standalone resources # -# $Id: lonwrapper.pm,v 1.36 2009/10/21 23:47:11 raeburn Exp $ +# $Id: lonwrapper.pm,v 1.37 2009/11/24 05:37:35 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -55,10 +55,12 @@ sub wrapper { my %layout = ('border' => 0); if ($env{'environment.remote'} eq 'off') { - if ($env{'environment.icons'} eq 'iconsonly') { - $layout{'rows'} = "140,*"; + if (($env{'request.course.id'}) && + (&Apache::lonnet::allowed('opa',$env{'request.course.id'}. + ($env{'request.course.sec'}?'/'.$env{'request.course.sec'}:'')))) { + $layout{'rows'} = "135,*"; } else { - $layout{'rows'} = "220,*"; + $layout{'rows'} = "100,*"; } } else { $layout{'rows'} = "1,*";