Index: lams_tool_assessment/web/pages/monitoring/summary.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_assessment/web/pages/monitoring/summary.jsp,v diff -u -r1.17 -r1.18 --- lams_tool_assessment/web/pages/monitoring/summary.jsp 17 Jun 2013 07:15:15 -0000 1.17 +++ lams_tool_assessment/web/pages/monitoring/summary.jsp 19 Jun 2013 14:30:03 -0000 1.18 @@ -145,13 +145,20 @@ if ( height == undefined || height == 0 ) { // IE doesn't use window.innerHeight. height = document.documentElement.clientHeight; - // alert("using clientHeight"); } - // alert("doc height "+height); height -= document.getElementById('TB_iframeContent').offsetTop + 60; document.getElementById('TB_iframeContent').style.height = height +"px"; - TB_HEIGHT = height + 28; + + var width = top.window.innerWidth; + if ( width == undefined || width == 0 ) { + // IE doesn't use window.innerWidth. + width = document.documentElement.clientWidth; + } + width -= document.getElementById('TB_iframeContent').offsetLeft + 60; + document.getElementById('TB_iframeContent').style.width = width +"px"; + TB_WIDTH = width + 1; + tb_position(); } }; Index: lams_tool_assessment/web/pages/monitoring/parts/questionsummary.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_assessment/web/pages/monitoring/parts/questionsummary.jsp,v diff -u -r1.9 -r1.10 --- lams_tool_assessment/web/pages/monitoring/parts/questionsummary.jsp 14 Jun 2013 11:26:18 -0000 1.9 +++ lams_tool_assessment/web/pages/monitoring/parts/questionsummary.jsp 19 Jun 2013 14:30:03 -0000 1.10 @@ -111,6 +111,18 @@ + + //jqgrid autowidth (http://stackoverflow.com/a/1610197) + $(window).bind('resize', function() { + var grid; + if (grid = jQuery(".ui-jqgrid-btable:visible")) { + grid.each(function(index) { + var gridId = $(this).attr('id'); + var gridParentWidth = jQuery('#gbox_' + gridId).parent().width(); + jQuery('#' + gridId).setGridWidth(gridParentWidth, true); + }); + } + }); }); function refreshSummaryPage() { @@ -184,7 +196,7 @@ -
+
${session.sessionName}
Index: lams_tool_assessment/web/pages/monitoring/parts/usersummary.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_assessment/web/pages/monitoring/parts/usersummary.jsp,v diff -u -r1.11 -r1.12 --- lams_tool_assessment/web/pages/monitoring/parts/usersummary.jsp 14 Jun 2013 11:26:18 -0000 1.11 +++ lams_tool_assessment/web/pages/monitoring/parts/usersummary.jsp 19 Jun 2013 14:30:03 -0000 1.12 @@ -101,6 +101,18 @@ + + //jqgrid autowidth (http://stackoverflow.com/a/1610197) + $(window).bind('resize', function() { + var grid; + if (grid = jQuery(".ui-jqgrid-btable:visible")) { + grid.each(function(index) { + var gridId = $(this).attr('id'); + var gridParentWidth = jQuery('#gbox_' + gridId).parent().width(); + jQuery('#' + gridId).setGridWidth(gridParentWidth, true); + }); + } + }); }); function refreshSummaryPage() { @@ -165,7 +177,7 @@

-
+