diff --git a/src/sql/parts/profiler/editor/profilerEditor.ts b/src/sql/parts/profiler/editor/profilerEditor.ts index 14005b6fb8..66ee89943b 100644 --- a/src/sql/parts/profiler/editor/profilerEditor.ts +++ b/src/sql/parts/profiler/editor/profilerEditor.ts @@ -84,7 +84,10 @@ class BasicView extends View { this._previousSize = this.size; this.setFixed(this.headerSize); } 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)); } }