Web: Components: added combobox manualY, manualX support, hid scroll

This commit is contained in:
Nikita Gopienko 2021-10-20 14:27:21 +03:00
parent 0a2e2d1ffc
commit 2d6fde48ff
3 changed files with 12 additions and 1 deletions

View File

@ -90,6 +90,8 @@ class ComboBox extends React.Component {
textOverflow,
showDisabledItems,
comboIcon,
manualY,
manualX,
} = this.props;
const { isOpen, selectedOption } = this.state;
@ -140,7 +142,8 @@ class ComboBox extends React.Component {
className="dropdown-container not-selectable"
directionX={directionX}
directionY={directionY}
manualY="102%"
manualY={manualY}
manualX={manualX}
open={isOpen}
clickOutsideAction={this.handleClickOutside}
{...dropDownMaxHeightProp}
@ -213,6 +216,8 @@ ComboBox.propTypes = {
/** Disables clicking on the icon */
disableIconClick: PropTypes.bool,
comboIcon: PropTypes.string,
manualY: PropTypes.string,
manualX: PropTypes.string,
};
ComboBox.defaultProps = {
@ -224,6 +229,7 @@ ComboBox.defaultProps = {
size: "base",
disableIconClick: true,
showDisabledItems: false,
manualY: "102%",
};
export default ComboBox;

View File

@ -256,6 +256,9 @@ const StyledScrollbar = styled(Scrollbar)`
.scroll-body {
display: flex;
}
.nav-thumb-horizontal {
display: none !important;
}
`;
StyledTableRow.defaultProps = { theme: Base };

View File

@ -40,6 +40,8 @@ const TableGroupMenu = (props) => {
className="table-container_group-menu-combobox not-selectable"
options={[]}
selectedOption={{}}
manualY="42px"
manualX="-32px"
/>
<div className="table-container_group-menu-separator" />
<StyledScrollbar>