min height for event detail view when expanding (#3255)

This commit is contained in:
Alan Ren
2018-11-16 15:07:56 -08:00
committed by GitHub
parent 847218da73
commit c02fbaeae7

View File

@@ -84,7 +84,10 @@ class BasicView extends View {
this._previousSize = this.size; this._previousSize = this.size;
this.setFixed(this.headerSize); this.setFixed(this.headerSize);
} else { } else {
this.setFlexible(this._previousSize); // Enforce the min height for the view when user is doing expand operation,
// to make sure the view has a reasonable height.
const minHeight = 200;
this.setFlexible(Math.max(this._previousSize, minHeight));
} }
} }