57e7ed7177
widgetHeight adds out-of-DOM widgets to the measure DIV to check their height. Unfortunately, the check for "out-of-DOM" is an inadequate heuristic. It only checks that the widget has a parentNode. widgetHeight adds the widget to a new DIV which is in turn added to the measure DIV. Later, the new DIV is removed from the measure DIV, but the widget is not, in turn, removed from it. This is where the heuristic fails. widgetHeight then attempts to measure the height of the out-of-DOM widget, which is always 0. I have also seen cases where the widget is attached to a line which is out-of-DOM, but I haven't followed the logic through and written a test case for it. |
||
---|---|---|
addon | ||
bin | ||
demo | ||
doc | ||
keymap | ||
lib | ||
mode | ||
test | ||
theme | ||
.gitattributes | ||
.gitignore | ||
.travis.yml | ||
AUTHORS | ||
CONTRIBUTING.md | ||
LICENSE | ||
README.md | ||
bower.json | ||
index.html | ||
package.json |
README.md
CodeMirror
CodeMirror is a JavaScript component that provides a code editor in the browser. When a mode is available for the language you are coding in, it will color your code, and optionally help with indentation.
The project page is http://codemirror.net
The manual is at http://codemirror.net/doc/manual.html
The contributing guidelines are in CONTRIBUTING.md