File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import { CellRenderer } from '@lumino/datagrid';
99
1010import { JSONExt } from '@lumino/coreutils' ;
1111
12- import { MessageLoop } from '@lumino/messaging' ;
12+ import { MessageLoop , Message } from '@lumino/messaging' ;
1313
1414import { Widget } from '@lumino/widgets' ;
1515
@@ -357,6 +357,18 @@ export class DataGridView extends DOMWidgetView {
357357 MessageLoop . postMessage ( this . pWidget , Widget . ResizeMessage . UnknownSize ) ;
358358 } ;
359359
360+ processPhosphorMessage ( msg : Message ) : void {
361+ super . processPhosphorMessage ( msg ) ;
362+
363+ switch ( msg . type ) {
364+ case 'after-show' :
365+ if ( this . pWidget . isVisible ) {
366+ this . manageResizeEvent ( ) ;
367+ }
368+ break ;
369+ }
370+ }
371+
360372 render ( ) {
361373 this . el . classList . add ( 'datagrid-container' ) ;
362374
You can’t perform that action at this time.
0 commit comments