diff --git a/module/testtask/css/batchrun.css b/module/testtask/css/batchrun.css index a37a9bf56f..ef3f067de7 100644 --- a/module/testtask/css/batchrun.css +++ b/module/testtask/css/batchrun.css @@ -3,4 +3,5 @@ .table-form > tbody > tr > th, .table-form > tbody > tr > td {border-bottom: 1px solid #ddd} .outer .table.table-form tbody > tr:last-child td{border:1px solid #ddd;} +.wordwrap{word-wrap:break-word; white-space:normal !important;} .step-item{padding-left: 20px;} diff --git a/module/testtask/view/batchrun.html.php b/module/testtask/view/batchrun.html.php index af7b318e2f..b5f3a9ab2d 100644 --- a/module/testtask/view/batchrun.html.php +++ b/module/testtask/view/batchrun.html.php @@ -105,16 +105,19 @@ $(function() { /* Readjust precondition width by cases precondition. */ preconditionWidth = $('th.precondition').width(); - $('tbody td.precondition').each(function() + $precondition = $('tbody td.precondition'); + length = $precondition.length; + for(i = 0; i < length; i++) { - width = $(this).find('span:first').width(); + width = $precondition.eq(i).find('span:first').width(); if(width > preconditionWidth) { preconditionWidth = width; if(preconditionWidth > 200) preconditionWidth = 200; $('th.precondition').width(preconditionWidth); } - }); + } + $('tbody td.precondition').addClass('wordwrap'); })