stable
Clone or download
Read-only
request #9727: CodeMirror hogs CPU when not in fixed height
How to test this: - Without this patch, when you try to display the diff of a file with ~1000 lines of code, your CPU should go to 100% for tens of seconds / minutes. - With this patch, the CodeMirror diff area will be set by javascript. It should update when you resize the page Change-Id: I8ff357b73f7635a356b9e71f6f5214d960aa188d
Modified Files
Name | ||||
---|---|---|---|---|
M | www/js/angular/src/app/app.js | +1 | −0 | Go to diff View file |
M | www/js/angular/src/app/file-diff/_file-diff.scss | +5 | −2 | Go to diff View file |
M | www/js/angular/src/app/file-diff/file-diff-directive.js | +7 | −8 | Go to diff View file |
M | www/js/angular/src/app/file-diff/file-diff.tpl.html | +5 | −1 | Go to diff View file |
A | www/js/angular/src/app/resize/resize-directive.js | +48 | −0 | Go to diff View file |
A | www/js/angular/src/app/resize/resize.js | +2 | −0 | Go to diff View file |