Skip to content

Commit a549eaa

Browse files
committed
fix(Header): Use IE9 condcom to fix header sizing
IE9 wasn't aligning the column headers properly. Not really worried about a permanent pretty fix here given IE9's age. This just hacks around the problem. Thanks to @chuge for the CSS. Fixes #3854
1 parent 6c9350c commit a549eaa

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/templates/ui-grid/ui-grid.html

+18
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,24 @@
2525
{{ grid.customStyles }}
2626
</style>
2727

28+
29+
<!--[if IE 9]>
30+
<style>
31+
.ui-grid-header-cell-wrapper {
32+
display: block;
33+
}
34+
35+
.ui-grid-header-cell-row {
36+
display: block;
37+
}
38+
39+
.ui-grid-header-cell {
40+
display: block;
41+
float: left;
42+
}
43+
</style>
44+
<![endif]-->
45+
2846
<div class="ui-grid-contents-wrapper">
2947
<div ui-grid-menu-button ng-if="grid.options.enableGridMenu"></div>
3048

0 commit comments

Comments
 (0)