Allow the image view to trigger a card resize.

This commit is contained in:
Dermot Duffy
2022-06-11 16:28:59 -07:00
parent 8ce65fd72d
commit e9dde20a76
3 changed files with 10 additions and 9 deletions
+4 -3
View File
@@ -92,10 +92,11 @@ export class View {
}
/**
* Determine if a view is of a piece of media (i.e. not the gallery).
* Determine if a view is of a piece of media (including the media viewer,
* live view, image view -- anything that can create a MediaShowInfo event).
*/
public isMediaView(): boolean {
return this.isViewerView() || this.is('live');
public isAnyMediaView(): boolean {
return this.isViewerView() || this.is('live') || this.is('image');
}
/**