@@ -1579,7 +1579,11 @@ export class ModifiedElement extends AbstractElementRenderer {
15791579
15801580 this . _outputLeftView ?. showOutputs ( ) ;
15811581 this . _outputRightView ?. showOutputs ( ) ;
1582- this . _outputMetadataEditor ?. layout ( ) ;
1582+ this . _outputMetadataEditor ?. layout ( {
1583+ width : this . _editor ?. getViewWidth ( ) || this . cell . getComputedCellContainerWidth ( this . notebookEditor . getLayoutInfo ( ) , false , true ) ,
1584+ height : this . cell . layoutInfo . outputMetadataHeight
1585+ } ) ;
1586+
15831587 this . _decorate ( ) ;
15841588 }
15851589 }
@@ -1800,13 +1804,19 @@ export class ModifiedElement extends AbstractElementRenderer {
18001804 if ( state . outputTotalHeight || state . outerWidth ) {
18011805 if ( this . _outputEditorContainer ) {
18021806 this . _outputEditorContainer . style . height = `${ this . cell . layoutInfo . outputTotalHeight } px` ;
1803- this . _outputEditor ?. layout ( ) ;
1807+ this . _outputEditor ?. layout ( {
1808+ width : this . _editor ?. getViewWidth ( ) || this . cell . getComputedCellContainerWidth ( this . notebookEditor . getLayoutInfo ( ) , false , true ) ,
1809+ height : this . cell . layoutInfo . outputTotalHeight
1810+ } ) ;
18041811 }
18051812
18061813 if ( this . _outputMetadataContainer ) {
18071814 this . _outputMetadataContainer . style . height = `${ this . cell . layoutInfo . outputMetadataHeight } px` ;
18081815 this . _outputMetadataContainer . style . top = `${ this . cell . layoutInfo . outputTotalHeight - this . cell . layoutInfo . outputMetadataHeight } px` ;
1809- this . _outputMetadataEditor ?. layout ( ) ;
1816+ this . _outputMetadataEditor ?. layout ( {
1817+ width : this . _editor ?. getViewWidth ( ) || this . cell . getComputedCellContainerWidth ( this . notebookEditor . getLayoutInfo ( ) , false , true ) ,
1818+ height : this . cell . layoutInfo . outputMetadataHeight
1819+ } ) ;
18101820 }
18111821 }
18121822
0 commit comments