-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make REPL scroll down on I/O change (#67)
* Add componentUpdate function to scroll down * Fix glitchiness of output when updating Repl I believe that this is due to trying to scroll and update the component at the same time, causing glitches (such as half the output being rendered, followed by the other half in 0.2s). I solved this using a slightly hacky solution -- to wait for a very short period before scrolling. Ideally, I would like to use a React method that is called *after* updating. * Revert "Fix glitchiness of output when updating Repl" This reverts commit 6c8bc34. Using setTimeOut caused an error where, given fast input and output, the outputs may not be grouped together properly. * Make div surrounding ReplInput a card So that it is padded in a similar fashion as ReplOutputs Resolves #41
- Loading branch information
Showing
3 changed files
with
15 additions
and
3 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