Skip to content

Commit a10a084

Browse files
committed
fix overflow menu positioning in tables
1 parent c4b7ea7 commit a10a084

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

src/dialog/overflow-menu/overflow-menu.component.ts

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Component, ElementRef, Input } from "@angular/core";
1+
import { Component, ElementRef, Input, ViewEncapsulation } from "@angular/core";
22
import { I18n } from "./../../i18n/i18n.module";
33

44
/**
@@ -40,7 +40,20 @@ import { I18n } from "./../../i18n/i18n.module";
4040
.bx--overflow-menu--open {
4141
opacity: 1
4242
}
43-
`]
43+
44+
/*
45+
rotate the overflow menu container as well as the icon.
46+
Since we calclate our menu position based on the container, not the icon
47+
*/
48+
.bx--data-table-v2 .bx--overflow-menu {
49+
transform: rotate(90deg);
50+
}
51+
52+
.bx--data-table-v2 .bx--overflow-menu__icon {
53+
transform: rotate(180deg);
54+
}
55+
`],
56+
encapsulation: ViewEncapsulation.None
4457
})
4558
export class OverflowMenu {
4659

0 commit comments

Comments
 (0)