Skip to content

Commit

Permalink
fix: Menu does not appear on scroll in Dashboard (#14566)
Browse files Browse the repository at this point in the history
* Fix menu

* Fix test
  • Loading branch information
geido authored May 11, 2021
1 parent eaeb8f7 commit b960843
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const editModeOnProps = {

function setup(props: HeaderDropdownProps) {
return (
<div className="dashboard">
<div className="dashboard-header">
<HeaderActionsDropdown {...props} />
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ class HeaderActionsDropdown extends React.PureComponent {
overlay={menu}
trigger={['click']}
getPopupContainer={triggerNode =>
triggerNode.closest(SCREENSHOT_NODE_SELECTOR)
triggerNode.closest('.dashboard-header')
}
>
<DropdownButton id="save-dash-split-button" role="button">
Expand Down
4 changes: 0 additions & 4 deletions superset-frontend/stylesheets/superset.less
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,3 @@ hr {
top: 269px !important;
}
}

.ant-dropdown.ant-dropdown-placement-bottomRight {
top: 133px !important;
}

0 comments on commit b960843

Please sign in to comment.