-
Notifications
You must be signed in to change notification settings - Fork 495
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5555c21
commit ca53840
Showing
4 changed files
with
4,164 additions
and
2,700 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { Message } from '@lumino/messaging'; | ||
import { Widget } from '@lumino/widgets'; | ||
|
||
/** | ||
* Wrapper widget of rendered cells, this class converts the Lumino resize | ||
* message to a window event. It helps fix the zero-heigh issue of some | ||
* widgets | ||
* | ||
*/ | ||
export class RenderedCells extends Widget { | ||
processMessage(msg: Message): void { | ||
super.processMessage(msg); | ||
switch (msg.type) { | ||
case 'resize': | ||
window.dispatchEvent(new Event('resize')); | ||
break; | ||
|
||
default: | ||
break; | ||
} | ||
} | ||
} |
Oops, something went wrong.