Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1214,7 +1214,7 @@ export default class Datatable extends LightningElement {
this.borderClass = (this.tableBorder == true) ? 'datatable-border' : '';

// Add overflow if max height is not set so the combobox will spill outside the table
this.borderClass += (this.allowOverflow) ? ' overflowEnabled' : '';
this.borderClass += (this.allowOverflow) ? ' overflowEnabled' : ' overflowDisabled ';

// Generate datatable
if (this._tableData) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,18 @@
.overflowEnabled c-ers_custom-lightning-datatable .slds-scrollable_y {
overflow: visible;
}

/* expands combox height within row to display more picklist values when overflow is disabled */
.overflowDisabled .sdls-combobox,
.overflowDisabled .slds-combobox_container,
.overflowDisabled .slds-dropdown {
position: relative !important;
z-index: 99 !important;
max-height: 200px;
overflow-y: scroll;
width: 200% !important;
}

/* stretch cell width of combobox to 100% */
c-ers_custom-lightning-datatable lightning-primitive-cell-factory .slds-hyphenate {
width: 100%;
Expand Down Expand Up @@ -94,4 +106,4 @@ c-datatable c-ers_custom-lightning-datatable .dt-outer-container lightning-primi
}
.remove-icon-black {
--slds-c-icon-color-foreground: black;
}
}