Skip to content

Commit fbf47f2

Browse files
committed
IE7 list view/table fixes
1 parent ca83ac7 commit fbf47f2

2 files changed

Lines changed: 24 additions & 2 deletions

File tree

ui/css/cloudstack3-ie7.css

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
div.panel div.list-view {
33
position: relative;
44
overflow-x: hidden;
5+
margin-top: 0px;
56
}
67

78
div.toolbar {
@@ -12,6 +13,10 @@ div.panel div.list-view div.fixed-header {
1213
top: expression(this.offsetParent.scrollTop + 30);
1314
}
1415

16+
div.panel div.list-view div.data-table table.body {
17+
top: 78px;
18+
}
19+
1520
.detail-view .main-groups {
1621
width: 554px;
1722
position: relative;
@@ -73,3 +78,17 @@ div.panel div.list-view div.fixed-header {
7378
top: expression(this.offsetParent.scrollTop);
7479
}
7580

81+
table tbody td,
82+
table th {
83+
padding: 9px 5px 8px 0px;
84+
border-right: 1px solid #BFBFBF;
85+
color: #495A76;
86+
clear: none;
87+
width: auto;
88+
width: 88px;
89+
min-width: 88px;
90+
font-size: 12px;
91+
overflow: hidden;
92+
vertical-align: middle;
93+
}
94+

ui/scripts/ui/widgets/dataTable.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
);
7373
$table = $mainContainer;
7474
var $theadContainer = $('<div>').addClass('fixed-header').prependTo($table);
75-
var $theadTable = $('<table>').appendTo($theadContainer);
75+
var $theadTable = $('<table>').appendTo($theadContainer).attr('nowrap', 'nowrap');
7676
var $thead = $table.find('thead').remove().appendTo($theadTable);
7777

7878
return $thead;
@@ -218,7 +218,10 @@
218218

219219
var init = function() {
220220
var noSelect = options && options.noSelect == true ? true : false;
221-
if (!$table.closest('div.data-table').size() && !$table.hasClass('no-split')) splitTable();
221+
if (!$table.closest('div.data-table').size() && !$table.hasClass('no-split')) {
222+
splitTable();
223+
$table.find('tbody').closest('table').addClass('body');
224+
}
222225

223226
$table.find('th').bind('mousemove mouseout', hoverResizableEvent);
224227
$table.find('th').bind('mousedown mousemove mouseup mouseout', resizeDragEvent);

0 commit comments

Comments
 (0)