This commit is contained in:
nightwing 2012-01-02 18:29:55 +04:00
commit 8d6facfdc7
2 changed files with 2 additions and 2 deletions

View file

@ -84,7 +84,7 @@ var Text = function(parentEl) {
var size = this.$measureSizes();
if (size && (this.$characterSize.width !== size.width || this.$characterSize.height !== size.height)) {
this.$characterSize = size;
this._emit("changeCharaterSize", {data: size});
this._emit("changeCharacterSize", {data: size});
}
};

View file

@ -118,7 +118,7 @@ var VirtualRenderer = function(container, theme) {
column : 0
};
this.$textLayer.addEventListener("changeCharaterSize", function() {
this.$textLayer.addEventListener("changeCharacterSize", function() {
_self.characterWidth = textLayer.getCharacterWidth();
_self.lineHeight = textLayer.getLineHeight();
_self.$updatePrintMargin();