Ensure CharMeasure exposes integers

This commit is contained in:
Daniel Imms
2017-08-31 23:23:04 -07:00
parent 42e5b3473d
commit 81d93b8fbf
3 changed files with 10 additions and 13 deletions
+2 -2
View File
@@ -59,8 +59,8 @@ export class CharMeasure extends EventEmitter implements ICharMeasure {
return;
}
if (this._width !== geometry.width || this._height !== geometry.height) {
this._width = geometry.width;
this._height = geometry.height;
this._width = Math.ceil(geometry.width);
this._height = Math.ceil(geometry.height);
this.emit('charsizechanged');
}
}