Skip to content

Commit 4287aa9

Browse files
committed
fix(grid): remove reserved space for actions if scrollable
1 parent 6b034fa commit 4287aa9

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

projects/angular/components/ui-grid/src/ui-grid.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@
522522
</div>
523523

524524
<ng-container *ngFor="let column of renderedColumns.freeColumns; let lastColumn = last; let columnIndex = index">
525-
<div *ngLet="(+(column.directive.widthPx$ | async)! + (lastColumn ? (+(deficit$ | async)!) : 0)) as widthPx"
525+
<div *ngLet="(+(column.directive.widthPx$ | async)! + (lastColumn ? (+(deficit$ | async)!) : 0) + (lastColumn && isScrollable ? 50 : 0)) as widthPx"
526526
[class.ui-grid-primary]="column.directive.primary"
527527
[class.ui-grid-secondary]="!column.directive.primary"
528528
[class.ui-grid-state-resizing]="column.directive === resizeManager.current?.column"

projects/angular/components/ui-grid/src/ui-grid.component.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ ui-grid {
554554
}
555555

556556
.invisible-refresh {
557-
opacity: 0;
557+
display: none;
558558
}
559559
}
560560

projects/angular/components/ui-grid/src/ui-grid.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -883,6 +883,7 @@ export class UiGridComponent<T extends IGridDataEntry>
883883
isOverflown$ = iif(() => this.isScrollable, this.minWidth$.pipe(
884884
map(minWidth => this._isOverflown(minWidth)),
885885
distinctUntilChanged(),
886+
shareReplay(1),
886887
), of(false));
887888

888889
tableOverflowStyle$ = this.isOverflown$.pipe(

0 commit comments

Comments
 (0)