mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-25 21:54:49 +08:00
[DE] Fix captions for rtl paragraph
This commit is contained in:
@ -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>
|
||||
|
||||
@ -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">
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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);
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user