Index: lams_tool_assessment/web/pages/monitoring/parts/questionsummary.jsp =================================================================== diff -u -ra102b8069df718fe47f3bc10c1d58b20fb5d1b68 -r92b9d466bd236638bc349bdce4dac6eaa01071eb --- lams_tool_assessment/web/pages/monitoring/parts/questionsummary.jsp (.../questionsummary.jsp) (revision a102b8069df718fe47f3bc10c1d58b20fb5d1b68) +++ lams_tool_assessment/web/pages/monitoring/parts/questionsummary.jsp (.../questionsummary.jsp) (revision 92b9d466bd236638bc349bdce4dac6eaa01071eb) @@ -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 =================================================================== diff -u -ra102b8069df718fe47f3bc10c1d58b20fb5d1b68 -r92b9d466bd236638bc349bdce4dac6eaa01071eb --- lams_tool_assessment/web/pages/monitoring/parts/usersummary.jsp (.../usersummary.jsp) (revision a102b8069df718fe47f3bc10c1d58b20fb5d1b68) +++ lams_tool_assessment/web/pages/monitoring/parts/usersummary.jsp (.../usersummary.jsp) (revision 92b9d466bd236638bc349bdce4dac6eaa01071eb) @@ -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 @@

-
+
Index: lams_tool_assessment/web/pages/monitoring/summary.jsp =================================================================== diff -u -re61834875a93b3f72e0fc73ab384017c45d795fb -r92b9d466bd236638bc349bdce4dac6eaa01071eb --- lams_tool_assessment/web/pages/monitoring/summary.jsp (.../summary.jsp) (revision e61834875a93b3f72e0fc73ab384017c45d795fb) +++ lams_tool_assessment/web/pages/monitoring/summary.jsp (.../summary.jsp) (revision 92b9d466bd236638bc349bdce4dac6eaa01071eb) @@ -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(); } };