Skip to content

Commit

Permalink
fix(Header): Use IE9 condcom to fix header sizing
Browse files Browse the repository at this point in the history
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
  • Loading branch information
c0bra committed Sep 15, 2015
1 parent 6c9350c commit a549eaa
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/templates/ui-grid/ui-grid.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,24 @@
{{ grid.customStyles }}
</style>


<!--[if IE 9]>
<style>
.ui-grid-header-cell-wrapper {
display: block;
}
.ui-grid-header-cell-row {
display: block;
}
.ui-grid-header-cell {
display: block;
float: left;
}
</style>
<![endif]-->

<div class="ui-grid-contents-wrapper">
<div ui-grid-menu-button ng-if="grid.options.enableGridMenu"></div>

Expand Down

2 comments on commit a549eaa

@swalters
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is still broken in the build. Can it be fixed or should we revert?

@JLLeitschuh
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@angular-ui/grid How did this break the build?
I think reverting would probably be the best course of action here.

Please sign in to comment.