@@ -1579,7 +1579,11 @@ export class ModifiedElement extends AbstractElementRenderer {
1579
1579
1580
1580
this . _outputLeftView ?. showOutputs ( ) ;
1581
1581
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
+
1583
1587
this . _decorate ( ) ;
1584
1588
}
1585
1589
}
@@ -1800,13 +1804,19 @@ export class ModifiedElement extends AbstractElementRenderer {
1800
1804
if ( state . outputTotalHeight || state . outerWidth ) {
1801
1805
if ( this . _outputEditorContainer ) {
1802
1806
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
+ } ) ;
1804
1811
}
1805
1812
1806
1813
if ( this . _outputMetadataContainer ) {
1807
1814
this . _outputMetadataContainer . style . height = `${ this . cell . layoutInfo . outputMetadataHeight } px` ;
1808
1815
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
+ } ) ;
1810
1820
}
1811
1821
}
1812
1822
0 commit comments