[DE] Fix captions for rtl paragraph

This commit is contained in:
Julia.Radzhabova
2025-05-16 15:24:47 +03:00
parent 6a6b33123d
commit 6beb87b3e9
4 changed files with 21 additions and 4 deletions

View File

@ -44,11 +44,11 @@
</tr>
<tr>
<td class="padding-small" width="50%">
<label class="input-label"><%= scope.strIndentsLeftText %></label>
<label id="paragraph-lbl-indent-left" class="input-label"><%= scope.strIndentsLeftText %></label>
<div id="paragraph-spin-indent-left"></div>
</td>
<td class="padding-small" width="50%">
<label class="input-label"><%= scope.strIndentsRightText %></label>
<label id="paragraph-lbl-indent-right" class="input-label"><%= scope.strIndentsRightText %></label>
<div id="paragraph-spin-indent-right"></div>
</td>
</tr>

View File

@ -13,11 +13,11 @@
<div><label class="header padding-very-small"><%= scope.strIndent %></label></div>
<div>
<div class="padding-large margin-right-3" style="display: inline-block;">
<label class="input-label"><%= scope.strIndentsLeftText %></label>
<label id="paragraphadv-lbl-indent-left" class="input-label"><%= scope.strIndentsLeftText %></label>
<div id="paragraphadv-spin-indent-left"></div>
</div><!--
--><div class="padding-large margin-right-3" style="display: inline-block;">
<label class="input-label"><%= scope.strIndentsRightText %></label>
<label id="paragraphadv-lbl-indent-right" class="input-label"><%= scope.strIndentsRightText %></label>
<div id="paragraphadv-spin-indent-right"></div>
</div><!--
--><div class="padding-large" style="display: inline-block;vertical-align: top">

View File

@ -236,6 +236,9 @@ define([
this.spinners.push(this.numIndentsRight);
this.lockedControls.push(this.numIndentsRight);
this.lblIndentsLeft = $markup.findById('#paragraph-lbl-indent-left');
this.lblIndentsRight = $markup.findById('#paragraph-lbl-indent-right');
this.cmbSpecial = new Common.UI.ComboBox({
el: $markup.findById('#paragraph-combo-special'),
cls: 'input-group-nr',
@ -540,6 +543,13 @@ define([
this._state.RightIndent=value;
}
value = prop.asc_getRtlDirection();
if (this._state.rtlDir !== value) {
this.lblIndentsLeft.text(value ? this.strSpacingBefore : this.strIndentsLeftText);
this.lblIndentsRight.text(value ? this.strSpacingAfter : this.strIndentsRightText);
this._state.rtlDir = value;
}
value = (first === 0) ? c_paragraphSpecial.NONE_SPECIAL : ((first > 0) ? c_paragraphSpecial.FIRST_LINE : c_paragraphSpecial.HANGING);
if ( this._state.CurSpecial!==value ) {
this.cmbSpecial.setValue(value);

View File

@ -186,6 +186,9 @@ define([
}, this));
this.spinners.push(this.numIndentsRight);
this.lblIndentsLeft = $('#paragraphadv-lbl-indent-left');
this.lblIndentsRight = $('#paragraphadv-lbl-indent-right');
this.numSpacingBefore = new Common.UI.MetricSpinner({
el: $('#paragraphadv-spin-spacing-before'),
step: .1,
@ -896,6 +899,8 @@ define([
this.rbDirRtl.setValue(value, true);
this.rbDirLtr.setValue(!value, true);
}
this.lblIndentsLeft.text(value ? this.strIndentsSpacingBefore : this.strIndentsLeftText);
this.lblIndentsRight.text(value ? this.strIndentsSpacingAfter : this.strIndentsRightText);
this.cmbTextAlignment.setValue((props.get_Jc() !== undefined && props.get_Jc() !== null) ? props.get_Jc() : '');
@ -1506,6 +1511,8 @@ define([
onTextDirChange: function(field, newValue, eOpts) {
if (newValue && this._changedProps) {
this._changedProps.asc_putRtlDirection(field.options.value);
this.lblIndentsLeft.text(field.options.value ? this.strIndentsSpacingBefore : this.strIndentsLeftText);
this.lblIndentsRight.text(field.options.value ? this.strIndentsSpacingAfter : this.strIndentsRightText);
}
},