File tree 2 files changed +3
-3
lines changed
editor/contrib/zoneWidget/browser
workbench/contrib/testing/browser
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -497,9 +497,9 @@ export abstract class ZoneWidget implements IHorizontalSashLayoutProvider {
497
497
// implement in subclass
498
498
}
499
499
500
- protected _relayout ( _newHeightInLines : number ) : void {
500
+ protected _relayout ( _newHeightInLines : number , useMax ?: boolean ) : void {
501
501
const maxHeightInLines = this . _getMaximumHeightInLines ( ) ;
502
- const newHeightInLines = maxHeightInLines === undefined ? _newHeightInLines : Math . min ( maxHeightInLines , _newHeightInLines ) ;
502
+ const newHeightInLines = ( useMax && ( maxHeightInLines !== undefined ) ) ? Math . min ( maxHeightInLines , _newHeightInLines ) : _newHeightInLines ;
503
503
if ( this . _viewZone && this . _viewZone . heightInLines !== newHeightInLines ) {
504
504
this . editor . changeViewZones ( accessor => {
505
505
if ( this . _viewZone ) {
Original file line number Diff line number Diff line change @@ -794,7 +794,7 @@ class TestResultsPeek extends PeekViewWidget {
794
794
795
795
const displayed = this . _getMaximumHeightInLines ( ) ;
796
796
if ( displayed ) {
797
- this . _relayout ( Math . min ( displayed , this . getVisibleEditorLines ( ) / 2 ) ) ;
797
+ this . _relayout ( Math . min ( displayed , this . getVisibleEditorLines ( ) / 2 ) , true ) ;
798
798
if ( ! contentHeightSettleTimer . isScheduled ( ) ) {
799
799
contentHeightSettleTimer . schedule ( ) ;
800
800
}
You can’t perform that action at this time.
0 commit comments