Skip to content

Commit

Permalink
fix(layer-list): scrollable zone bug fix (#889)
Browse files Browse the repository at this point in the history
  • Loading branch information
LAMM26 authored Jul 7, 2021
1 parent dae627b commit 0c3a2b7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
</mat-list-item>
<mat-divider></mat-divider>

<igo-list #igoList [ngClass]="(layerTool && !selection) ? 'igo-list-min-height': 'igo-list-max-height'" [navigation]="false" [selection]="false">
<igo-list #igoList [ngClass]="{'igo-list-tools-multi': selection, 'igo-list-tools-single': (layerTool && !selection), 'igo-list-no-tools': (!layerTool && !selection)}" [navigation]="false" [selection]="false">
<ng-template ngFor let-layer let-i="index" [ngForOf]="layers$ | async">
<igo-layer-item *ngIf="!(excludeBaseLayers && layer.baseLayer)"
igoListItem
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
:host .igo-list-min-height {
:host .igo-list-no-tools {
height: calc(100% - 57px);
padding-top: 8px;
}

:host .igo-list-tools-single {
height: calc(100% - 153px);
padding-top: 8px;
}

:host .igo-list-max-height {
:host .igo-list-tools-multi {
height: calc(100% - 178px);
padding-top: 8px;
}
Expand Down

0 comments on commit 0c3a2b7

Please sign in to comment.