Show More
@@ -100,8 +100,10 b' var IPython = (function (IPython) {' | |||||
100 | // refresh/focus/refresh, the to_markdown method won't work. |
|
100 | // refresh/focus/refresh, the to_markdown method won't work. | |
101 | this.code_mirror.refresh(); |
|
101 | this.code_mirror.refresh(); | |
102 | this.code_mirror.focus(); |
|
102 | this.code_mirror.focus(); | |
103 | // In some wierd cases we seem to need this extra refresh. |
|
103 | // This final refresh is needed on Firefox to trigger the editor | |
104 | //this.code_mirror.refresh(); |
|
104 | // to be auto-sized. This glitch only happens on cell that are | |
|
105 | // loaded initially and haven't had their editor focused before. | |||
|
106 | this.code_mirror.refresh(); | |||
105 | this.rendered = false; |
|
107 | this.rendered = false; | |
106 | if (this.get_text() === this.placeholder) { |
|
108 | if (this.get_text() === this.placeholder) { | |
107 | this.set_text(''); |
|
109 | this.set_text(''); |
General Comments 0
You need to be logged in to leave comments.
Login now