Skip to content

Commit

Permalink
Add repositionOnScroll to popovers within the Inspector and the Index…
Browse files Browse the repository at this point in the history
… Management detail panel. (#23856)
  • Loading branch information
cjcenizal authored Oct 24, 2018
1 parent 2c7caee commit 1db0755
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ class DataDownloadOptions extends Component {
isOpen={this.state.isPopoverOpen}
closePopover={this.closePopover}
panelPaddingSize="none"
repositionOnScroll
>
<EuiContextMenuPanel
className="eui-textNoWrap"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ class RequestSelector extends Component {
closePopover={this.closePopover}
panelPaddingSize="none"
anchorPosition="downLeft"
repositionOnScroll
>
<EuiContextMenuPanel
className="insRequestSelector__menuPanel"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ exports[`InspectorPanel should render as expected 1`] = `
isOpen={false}
ownFocus={true}
panelPaddingSize="none"
repositionOnScroll={true}
>
<EuiOutsideClickDetector
onOutsideClick={[Function]}
Expand Down
1 change: 0 additions & 1 deletion src/ui/public/inspector/ui/inspector_panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ class InspectorPanel extends Component {
constructor(props) {
super(props);
this.state = {
isHelpPopoverOpen: false,
selectedView: props.views[0],
views: props.views,
// Clone adapters array so we can validate that this prop never change
Expand Down
1 change: 1 addition & 0 deletions src/ui/public/inspector/ui/inspector_view_chooser.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ class InspectorViewChooser extends Component {
closePopover={this.closeSelector}
panelPaddingSize="none"
anchorPosition="downRight"
repositionOnScroll
>
<EuiContextMenuPanel
items={views.map(this.renderView)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,7 @@ class IndexActionsContextMenuUi extends Component {
panelPaddingSize="none"
withTitle
anchorPosition={anchorPosition}
repositionOnScroll
>
<EuiContextMenu initialPanelId={0} panels={panels} />
</EuiPopover>
Expand Down

0 comments on commit 1db0755

Please sign in to comment.