Skip to content

Commit

Permalink
fix(uiGridColumnMenu): Position relatively
Browse files Browse the repository at this point in the history
Positioning absolutely worked in all browsers but IE9. It was positioning
the column menu at the top of the page...

Changing to relative seems to have fixed this in IE9 and kept all other
browsers the same.

Fixes #2319
  • Loading branch information
c0bra committed Apr 13, 2015
1 parent e1d8b60 commit 9d91805
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/less/header.less
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

.ui-grid-top-panel-background {
.gradient(@headerBackgroundColor, @headerGradientStart, @headerGradientStop);
.gradient(@headerBackgroundColor, @headerGradientStart, @headerGradientStop);
}

@topPanelRadius: @gridBorderRadius - @gridBorderWidth;
Expand All @@ -17,7 +17,7 @@
overflow: hidden; // Disable so menus show up
font-weight: bold;

// .gradient(@headerBackgroundColor, @headerGradientStart, @headerGradientStop);
// .gradient(@headerBackgroundColor, @headerGradientStart, @headerGradientStop);
.ui-grid-top-panel-background;

.border-radius(@topPanelRadius, 0, 0, @topPanelRadius);
Expand Down Expand Up @@ -103,7 +103,7 @@
}

.ui-grid-column-menu {
position: absolute;
position: relative;
}

/* Slide up/down animations */
Expand All @@ -112,12 +112,12 @@
.transition(all, 0.05s, linear);
display: block !important;
}

&.ng-hide-add.ng-hide-add-active,
&.ng-hide-remove {
.transform(translateY(-100%));
}

&.ng-hide-add,
&.ng-hide-remove.ng-hide-remove-active {
.transform(translateY(0));
Expand All @@ -130,12 +130,12 @@
.transition(all, 0.05s, linear);
display: block !important;
}

&.ng-hide-add.ng-hide-add-active,
&.ng-hide-remove {
.transform(translateY(-100%));
}

&.ng-hide-add,
&.ng-hide-remove.ng-hide-remove-active {
.transform(translateY(0));
Expand Down

0 comments on commit 9d91805

Please sign in to comment.