Prettier formatting fix

pull/114/merge
Thomas Buckley-Houston 2018-07-16 18:08:04 +08:00
rodzic acfb118008
commit 38cf92b486
1 zmienionych plików z 10 dodań i 4 usunięć

Wyświetl plik

@ -17,7 +17,7 @@ export default class extends utils.mixins(CommonMixin) {
this._pre_calculated_char = {
width: 9,
height: 15
}
};
if (TEST) {
this._char_height_magic_number = 0;
@ -168,9 +168,15 @@ export default class extends utils.mixins(CommonMixin) {
_calculateCharacterDimensions() {
const element = this._getOrCreateMeasuringBox();
const dom_rect = element.getBoundingClientRect();
if (dom_rect.width != this._pre_calculated_char.width ||
dom_rect.height != this._pre_calculated_char.height) {
this.log(`Using char dims ${this._pre_calculated_char.width}x${this._pre_calculated_char.height}`);
if (
dom_rect.width != this._pre_calculated_char.width ||
dom_rect.height != this._pre_calculated_char.height
) {
this.log(
`Using char dims ${this._pre_calculated_char.width}x${
this._pre_calculated_char.height
}`
);
this.log(`Actual char dims ${dom_rect.width}x${dom_rect.height}`);
}
this.char = {