[DE mobile] Fix bug with shape border size.
This commit is contained in:
parent
97ec7f0934
commit
ae673b565b
|
@ -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));
|
||||
|
|
|
@ -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]);
|
||||
|
|
Loading…
Reference in a new issue