Skip to content

Commit

Permalink
Bad code fragment. makes the header text appear in wrog position in c…
Browse files Browse the repository at this point in the history
…ase if we want to have it with more height
  • Loading branch information
tonytomov committed Mar 11, 2015
1 parent b31a3a0 commit f259536
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions js/grid.grouping.js
Original file line number Diff line number Diff line change
Expand Up @@ -632,12 +632,12 @@ $.jgrid.extend({
// Set position of the sortable div (the main lable)
// with the column header text to the middle of the cell.
// One should not do this for hidden headers.
$htable.find("div.ui-jqgrid-sortable").each(function () {
var $ts = $(this), $parent = $ts.parent();
if ($parent.is(":visible") && $parent.is(":has(span.ui-jqgrid-resize)")) {
$ts.css('top', ($parent.height() - $ts.outerHeight()) / 2 + 'px');
}
});
//$htable.find("div.ui-jqgrid-sortable").each(function () {
//var $ts = $(this), $parent = $ts.parent();
//if ($parent.is(":visible") && $parent.is(":has(span.ui-jqgrid-resize)")) {
//$ts.css('top', ($parent.height() - $ts.outerHeight()) / 2 + 'px');
//}
//});
}

$firstRow = $theadInTable.find("tr.jqg-first-row-header");
Expand Down Expand Up @@ -675,7 +675,7 @@ $.jgrid.extend({
if ($resizing.length>0) {// resizable column
$resizing[0].style.height = "";
}
$th.children("div")[0].style.top = "";
//$th.children("div")[0].style.top = "";
}
$(thead).children('tr.ui-jqgrid-labels').remove();
$(thead).prepend($tr);
Expand Down

0 comments on commit f259536

Please sign in to comment.