From 601020f0278b4f75639315eb39537520acd85225 Mon Sep 17 00:00:00 2001 From: Josh Dover Date: Mon, 8 Oct 2018 02:52:06 -0500 Subject: [PATCH] Prevent header popovers from scrolling with page content (#23850) --- .../directives/header_global_nav/components/header_app_menu.tsx | 2 ++ .../security/public/views/nav_control/nav_control_component.js | 1 + 2 files changed, 3 insertions(+) diff --git a/src/ui/public/chrome/directives/header_global_nav/components/header_app_menu.tsx b/src/ui/public/chrome/directives/header_global_nav/components/header_app_menu.tsx index d56597b7fe9bc3..3fa46e75a1187f 100644 --- a/src/ui/public/chrome/directives/header_global_nav/components/header_app_menu.tsx +++ b/src/ui/public/chrome/directives/header_global_nav/components/header_app_menu.tsx @@ -72,6 +72,8 @@ export class HeaderAppMenu extends Component { button={button} isOpen={this.state.isOpen} anchorPosition="downRight" + // @ts-ignore + repositionOnScroll closePopover={this.closeMenu} > diff --git a/x-pack/plugins/security/public/views/nav_control/nav_control_component.js b/x-pack/plugins/security/public/views/nav_control/nav_control_component.js index 90d5f6191f8ae3..e9f72e37d5f781 100644 --- a/x-pack/plugins/security/public/views/nav_control/nav_control_component.js +++ b/x-pack/plugins/security/public/views/nav_control/nav_control_component.js @@ -65,6 +65,7 @@ export class SecurityNavControl extends Component { button={button} isOpen={this.state.isOpen} anchorPosition="downRight" + repositionOnScroll closePopover={this.closeMenu} panelPaddingSize="none" >