Resize carousel after intersection change.

This commit is contained in:
Dermot Duffy
2022-07-10 20:19:29 -07:00
parent 214a553aa7
commit 325abdfdd8
+4
View File
@@ -269,6 +269,10 @@ export class FrigateCardMediaCarousel extends LitElement {
*/ */
const reInit = (): void => { const reInit = (): void => {
// In some cases the carousel may need its height adjusted after the DOM is
// newly visible (e.g. a smaller camera live in preload mode, that becomes
// visible after switching from a larger camera snapshot).
this._adaptiveHeightHandler();
this.frigateCardCarousel()?.carouselReInit(); this.frigateCardCarousel()?.carouselReInit();
}; };