[DE] Fix position image setting in form settings
This commit is contained in:
parent
f466027c0f
commit
817d6338f1
|
@ -85,7 +85,6 @@
|
|||
</tr>
|
||||
<tr class="form-image">
|
||||
<td class="padding-large">
|
||||
<label class="input-label"><%= scope.textButton %></label>
|
||||
<div id="form-cnt-position" style="width: 100%;">
|
||||
<div class="row">
|
||||
<div id="form-img-position-preview">
|
||||
|
|
|
@ -942,7 +942,7 @@ define([
|
|||
this.sldrPreviewPositionX.setValue(val);
|
||||
this._state.imgPositionX = val;
|
||||
}
|
||||
val = pictPr.get_ShiftY() * 100;
|
||||
val = 100 - (pictPr.get_ShiftY() * 100);
|
||||
if (this._state.imgPositionY !== val) {
|
||||
this.sldrPreviewPositionY.setValue(val);
|
||||
this._state.imgPositionY = val;
|
||||
|
@ -1205,7 +1205,7 @@ define([
|
|||
val = this._state.imgPositionX / 100;
|
||||
pictPr.put_ShiftX(val);
|
||||
} else {
|
||||
val = this._state.imgPositionY / 100;
|
||||
val = (100 - this._state.imgPositionY) / 100;
|
||||
pictPr.put_ShiftY(val);
|
||||
}
|
||||
props.put_PictureFormPr(pictPr);
|
||||
|
@ -1252,8 +1252,7 @@ define([
|
|||
textNever: 'Never',
|
||||
textTooBig: 'Image is Too Big',
|
||||
textTooSmall: 'Image is Too Small',
|
||||
textScale: 'When to scale',
|
||||
textButton: 'Button'
|
||||
textScale: 'When to scale'
|
||||
|
||||
}, DE.Views.FormSettings || {}));
|
||||
});
|
Loading…
Reference in a new issue