Skip to content

Commit 24bc4de

Browse files
authored
Merge pull request #406 from cal-smith/dropdown
fix(dropdown): remove scroll addition to re-fix positioning
2 parents b82c630 + f1412b8 commit 24bc4de

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/dropdown/dropdown.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,6 @@ export class Dropdown implements OnInit, AfterContentInit, OnDestroy {
422422
let pos = position.findAbsolute(this.dropdownButton.nativeElement, this.dropdownWrapper, "bottom");
423423
// add -40 to the top position to account for carbon styles
424424
pos = position.addOffset(pos, -40, 0);
425-
pos = position.addOffset(pos, window.scrollY, window.scrollX);
426425
position.setElement(this.dropdownWrapper, pos);
427426
};
428427
this.dropdownMenu.nativeElement.style.display = "block";

0 commit comments

Comments
 (0)