[DE mobile] Fix bug with shape border size.

This commit is contained in:
Julia Radzhabova 2016-11-25 15:29:59 +03:00
parent 97ec7f0934
commit ae673b565b
2 changed files with 6 additions and 7 deletions

View file

@ -223,10 +223,9 @@ define([
$('.chart-types li[data-type=' + type + ']').addClass('active');
// Init style border size
var borderSize = borderSizeTransform.sizeByValue(shapeProperties.get_stroke().get_width());
$('#edit-chart-bordersize input').val([borderSizeTransform.sizeByIndex(shapeProperties.get_stroke().get_width())]);
$('#edit-chart-bordersize .item-after').text(borderSize + ' ' + _metricText);
var borderSize = shapeProperties.get_stroke().get_width() * 72.0 / 25.4;
$('#edit-chart-bordersize input').val([borderSizeTransform.sizeByIndex(borderSize)]);
$('#edit-chart-bordersize .item-after').text(borderSizeTransform.sizeByValue(borderSize) + ' ' + _metricText);
paletteFillColor && paletteFillColor.on('select', _.bind(me.onFillColor, me));
paletteBorderColor && paletteBorderColor.on('select', _.bind(me.onBorderColor, me));

View file

@ -210,9 +210,9 @@ define([
paletteBorderColor = me.getView('EditShape').paletteBorderColor;
// Init style border size
var borderSize = borderSizeTransform.sizeByValue(shapeProperties.get_stroke().get_width());
$('#edit-shape-bordersize input').val([borderSizeTransform.sizeByIndex(shapeProperties.get_stroke().get_width())]);
$('#edit-shape-bordersize .item-after').text(borderSize + ' ' + _metricText);
var borderSize = shapeProperties.get_stroke().get_width() * 72.0 / 25.4;
$('#edit-shape-bordersize input').val([borderSizeTransform.sizeByIndex(borderSize)]);
$('#edit-shape-bordersize .item-after').text(borderSizeTransform.sizeByValue(borderSize) + ' ' + _metricText);
// Init style opacity
$('#edit-shape-effect input').val([shapeProperties.get_fill().transparent ? shapeProperties.get_fill().transparent / 2.55 : 100]);