Skip to content

Commit

Permalink
Fix virtual scroll container height for Feature Search (not final)
Browse files Browse the repository at this point in the history
  • Loading branch information
Waguramu committed Sep 12, 2024
1 parent 64dbf91 commit 674bc4d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion erdblick_app/app/feature.search.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ import {KeyboardService} from "./keyboard.service";
<p-listbox class="results-listbox" [options]="placeholder" [(ngModel)]="selectedResult"
optionLabel="label" [virtualScroll]="true" [virtualScrollItemSize]="35"
[multiple]="false" [metaKeySelection]="false" (onChange)="selectResult($event)"
emptyMessage="No features matched." [scrollHeight]="'calc(100vh - 23em)'"
emptyMessage="No features matched."
#listbox
/>
</p-dialog>
Expand Down
4 changes: 4 additions & 0 deletions erdblick_app/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -870,6 +870,10 @@ body {
padding: 0.5em 0.75em;
font-size: 0.9em;
}

.p-scroller {
height: calc(100vh - 23em) !important;
}
}

@media only screen and (max-width: 56em) {
Expand Down

0 comments on commit 674bc4d

Please sign in to comment.