IE7 list view/table fixes

This commit is contained in:
Brian Federle 2012-02-10 15:52:04 -08:00
parent ca83ac7749
commit fbf47f2f4c
2 changed files with 24 additions and 2 deletions

View File

@ -2,6 +2,7 @@
div.panel div.list-view {
position: relative;
overflow-x: hidden;
margin-top: 0px;
}
div.toolbar {
@ -12,6 +13,10 @@ div.panel div.list-view div.fixed-header {
top: expression(this.offsetParent.scrollTop + 30);
}
div.panel div.list-view div.data-table table.body {
top: 78px;
}
.detail-view .main-groups {
width: 554px;
position: relative;
@ -73,3 +78,17 @@ div.panel div.list-view div.fixed-header {
top: expression(this.offsetParent.scrollTop);
}
table tbody td,
table th {
padding: 9px 5px 8px 0px;
border-right: 1px solid #BFBFBF;
color: #495A76;
clear: none;
width: auto;
width: 88px;
min-width: 88px;
font-size: 12px;
overflow: hidden;
vertical-align: middle;
}

View File

@ -72,7 +72,7 @@
);
$table = $mainContainer;
var $theadContainer = $('<div>').addClass('fixed-header').prependTo($table);
var $theadTable = $('<table>').appendTo($theadContainer);
var $theadTable = $('<table>').appendTo($theadContainer).attr('nowrap', 'nowrap');
var $thead = $table.find('thead').remove().appendTo($theadTable);
return $thead;
@ -218,7 +218,10 @@
var init = function() {
var noSelect = options && options.noSelect == true ? true : false;
if (!$table.closest('div.data-table').size() && !$table.hasClass('no-split')) splitTable();
if (!$table.closest('div.data-table').size() && !$table.hasClass('no-split')) {
splitTable();
$table.find('tbody').closest('table').addClass('body');
}
$table.find('th').bind('mousemove mouseout', hoverResizableEvent);
$table.find('th').bind('mousedown mousemove mouseup mouseout', resizeDragEvent);