Skip to content

Commit

Permalink
update screenshot and fix line numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigopivi committed Aug 21, 2018
1 parent 30d43d3 commit 731ded6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 0 deletions.
Binary file modified screenshot.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions web/components/Editor/Editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ export default class Editor extends React.Component<{}, IEditorState> {
private changeTab = (i: number, cb?: () => void) => {
this.setState({ activeTabIndex: i }, () => {
this.codeflask.updateCode(this.tabs[this.state.activeTabIndex].value);
this.codeflask.setLineNumber();
if (cb) {
setTimeout(cb, 600); // note; hack using setTimeout because codeflask uses a timeout on update code
}
Expand Down

0 comments on commit 731ded6

Please sign in to comment.