File tree 5 files changed +7
-0
lines changed
5 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -241,6 +241,7 @@ namespace Private {
241
241
) : HTMLElement {
242
242
const title = renderer . createSectionTitle ( data ) ;
243
243
title . style . position = 'absolute' ;
244
+ title . style . contain = 'strict' ;
244
245
title . setAttribute ( 'aria-label' , `${ data . label } Section` ) ;
245
246
title . setAttribute ( 'aria-expanded' , expanded ? 'true' : 'false' ) ;
246
247
title . setAttribute ( 'aria-controls' , data . owner . id ) ;
Original file line number Diff line number Diff line change @@ -1119,6 +1119,7 @@ export class DockLayout extends Layout {
1119
1119
// Initialize the handle layout behavior.
1120
1120
let style = handle . style ;
1121
1121
style . position = 'absolute' ;
1122
+ style . contain = 'strict' ;
1122
1123
style . top = '0' ;
1123
1124
style . left = '0' ;
1124
1125
style . width = '0' ;
Original file line number Diff line number Diff line change @@ -1281,6 +1281,7 @@ export namespace DockPanel {
1281
1281
this . node . classList . add ( 'lm-DockPanel-overlay' ) ;
1282
1282
this . node . classList . add ( 'lm-mod-hidden' ) ;
1283
1283
this . node . style . position = 'absolute' ;
1284
+ this . node . style . contain = 'strict' ;
1284
1285
}
1285
1286
1286
1287
/**
Original file line number Diff line number Diff line change @@ -619,10 +619,12 @@ export class LayoutItem implements IDisposable {
619
619
*
620
620
* #### Notes
621
621
* The widget will be set to absolute positioning.
622
+ * The widget will use strict CSS containment.
622
623
*/
623
624
constructor ( widget : Widget ) {
624
625
this . widget = widget ;
625
626
this . widget . node . style . position = 'absolute' ;
627
+ this . widget . node . style . contain = 'strict' ;
626
628
}
627
629
628
630
/**
@@ -647,6 +649,7 @@ export class LayoutItem implements IDisposable {
647
649
style . left = '' ;
648
650
style . width = '' ;
649
651
style . height = '' ;
652
+ style . contain = '' ;
650
653
}
651
654
652
655
/**
Original file line number Diff line number Diff line change @@ -829,6 +829,7 @@ namespace Private {
829
829
) : HTMLDivElement {
830
830
let handle = renderer . createHandle ( ) ;
831
831
handle . style . position = 'absolute' ;
832
+ handle . style . contain = 'strict' ;
832
833
return handle ;
833
834
}
834
835
You can’t perform that action at this time.
0 commit comments