forked from nteract/nteract
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: update editor resize handler to incorporate the new
contentSizeChange event, adopt the new padding option to do away with the TopMargin hack Monaco 0.20 introduced a `getContentHeight` API that enables us to get the current editor height without resorting to hacks around line counts. This also handles cases such as code folding. See this issue for details: microsoft/monaco-editor#794 Also added more type checking in the editor instantiation, leveraged the new padding option to do away with the TopMargin work around.
- Loading branch information
Showing
2 changed files
with
33 additions
and
55 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