From d116f5e0a01647c247a08b7f8fd77998aa818598 Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Mon, 8 Mar 2021 00:28:57 +0300 Subject: [PATCH] [SSE mobile] refactoring --- apps/spreadsheeteditor/mobile/src/store/cellSettings.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/apps/spreadsheeteditor/mobile/src/store/cellSettings.js b/apps/spreadsheeteditor/mobile/src/store/cellSettings.js index 3266e24af..2ee0fbe9f 100644 --- a/apps/spreadsheeteditor/mobile/src/store/cellSettings.js +++ b/apps/spreadsheeteditor/mobile/src/store/cellSettings.js @@ -120,8 +120,7 @@ export class storeCellSettings { this.fontInfo.size = xfs.asc_getFontSize(); this.fontInfo.color = xfs.asc_getFontColor(); - let clr = this.resetColor(this.fontInfo.color); - this.fontColor = clr; + this.fontColor = this.resetColor(this.fontInfo.color); this.isBold = xfs.asc_getFontBold(); this.isItalic = xfs.asc_getFontItalic(); @@ -132,9 +131,8 @@ export class storeCellSettings { let array = []; for (let font of fonts) { - let fontId = font.asc_getFontId(); array.push({ - id : fontId, + id : font.asc_getFontId(), name : font.asc_getFontName(), //displayValue: font.asc_getFontName(), imgidx : font.asc_getFontThumbnail(), @@ -167,6 +165,7 @@ export class storeCellSettings { changeBorderSize(size) { this.borderInfo.width = size; + console.log('change border width ' + size); } changeBorderStyle(type) {