Merge branch 'master' into doc/api

This commit is contained in:
Garen Torikian 2012-02-13 12:34:25 -08:00
commit 870fe2c74e
47 changed files with 420 additions and 341 deletions

View file

@ -132,6 +132,11 @@ var Text = function(parentEl) {
}
}
// Size and width can be null if the editor is not visible or
// detached from the document
if (!this.element.offsetWidth)
return null;
var style = this.$measureNode.style;
var computedStyle = dom.computedStyle(this.element);