From f05ee648b0e34c1ae1e8d4e19bb06b3ebfb8aa69 Mon Sep 17 00:00:00 2001 From: Alexander Yuzhin Date: Mon, 23 Jan 2017 16:00:44 +0300 Subject: [PATCH] [DE mobile] Fixed thumbnail size of paragraph styles. --- .../mobile/app/controller/edit/EditParagraph.js | 12 ++++++------ .../mobile/app/view/edit/EditParagraph.js | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/apps/documenteditor/mobile/app/controller/edit/EditParagraph.js b/apps/documenteditor/mobile/app/controller/edit/EditParagraph.js index 89344d0d75..c169198e60 100644 --- a/apps/documenteditor/mobile/app/controller/edit/EditParagraph.js +++ b/apps/documenteditor/mobile/app/controller/edit/EditParagraph.js @@ -55,7 +55,7 @@ define([ _paragraphInfo = {}, _paragraphObject = undefined, _styles = [], - _styleTumbSize, + _styleThumbSize, metricText = Common.Utils.Metric.getCurrentMetricName(); return { @@ -180,8 +180,8 @@ define([ return _styles || []; }, - getTumbSize: function () { - return _styleTumbSize || {width: 0, height: 0}; + getThumbSize: function () { + return _styleThumbSize || {width: 0, height: 0}; }, // Handlers @@ -308,9 +308,9 @@ define([ } _styles = []; - _styleTumbSize = { - width : styles.STYLE_THUMBNAIL_WIDTH / uiApp.device.pixelRatio, - height : styles.STYLE_THUMBNAIL_HEIGHT / uiApp.device.pixelRatio + _styleThumbSize = { + width : styles.STYLE_THUMBNAIL_WIDTH, + height : styles.STYLE_THUMBNAIL_HEIGHT }; _.each(styles.get_MergedStyles(), function(style){ diff --git a/apps/documenteditor/mobile/app/view/edit/EditParagraph.js b/apps/documenteditor/mobile/app/view/edit/EditParagraph.js index 3e0f053b26..32017f5837 100644 --- a/apps/documenteditor/mobile/app/view/edit/EditParagraph.js +++ b/apps/documenteditor/mobile/app/view/edit/EditParagraph.js @@ -121,7 +121,7 @@ define([ renderStyles: function () { var me = this, - thimbSize = DE.getController('EditParagraph').getTumbSize(), + thumbSize = DE.getController('EditParagraph').getThumbSize(), $styleList = $('#paragraph-list ul'), template = _.template( '
  • ' + @@ -129,7 +129,7 @@ define([ '' + (Framework7.prototype.device.android ? '
    ' : '') + '
    ' + - '
    '.format(thimbSize.width, thimbSize.height) + + '
    '.format(thumbSize.width, thumbSize.height) + '
    ' + '' + '
  • '