Index: lams_tool_lamc/web/monitoring/SummaryContent.jsp =================================================================== diff -u -r45dc9d53a03937ef25d6a8fa6c383c046f5df9f3 -ra23caa70b88449d7682f2b25ed0e5c56e58c27d8 --- lams_tool_lamc/web/monitoring/SummaryContent.jsp (.../SummaryContent.jsp) (revision 45dc9d53a03937ef25d6a8fa6c383c046f5df9f3) +++ lams_tool_lamc/web/monitoring/SummaryContent.jsp (.../SummaryContent.jsp) (revision a23caa70b88449d7682f2b25ed0e5c56e58c27d8) @@ -90,9 +90,8 @@ gridstate:"hidden", //hiddengrid:true, height: 110, - width: 780, + autowidth: true, shrinkToFit: false, - scrollOffset: 0, caption: "", colNames:['#', 'userAttemptUid', @@ -136,6 +135,22 @@ }); + + //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'); + + //resize only user summary grids + if (gridId.match("^userSummary")) { + var gridParentWidth = jQuery('#gbox_' + gridId).parent().width(); + jQuery('#' + gridId).setGridWidth(gridParentWidth, true); + } + }); + } + }); }); @@ -176,7 +191,7 @@
-
+