1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2025-01-14 14:43:17 +08:00

Using dhv instead of vh to take dynamic mobile height in consideration. See: https://stackoverflow.com/questions/37112218/css3-100vh-not-constant-in-mobile-browser #587 #44 #27 #615 #427

This commit is contained in:
Patrik J. Braun 2023-03-05 19:11:25 +01:00
parent 7ca7451a24
commit 0891215c3a

View File

@ -79,6 +79,6 @@
</div> </div>
<app-gallery-filter #filterComponent <app-gallery-filter #filterComponent
*ngIf="showFilters && ItemCount> 0" *ngIf="showFilters && ItemCount> 0"
[style.height]="sanitizer.bypassSecurityTrustStyle('calc(100vh - '+(navigatorElement?.nativeElement?.getBoundingClientRect().top+navigatorElement?.nativeElement?.getBoundingClientRect().height)+'px)')" [style.height]="sanitizer.bypassSecurityTrustStyle('calc(100dvh - '+(navigatorElement?.nativeElement?.getBoundingClientRect().top+navigatorElement?.nativeElement?.getBoundingClientRect().height)+'px)')"
class="position-absolute w-100"></app-gallery-filter> class="position-absolute w-100"></app-gallery-filter>