[DE] Make position image setting in form settings
This commit is contained in:
parent
c9aaf283a7
commit
b634ce9493
|
@ -83,6 +83,22 @@
|
||||||
<div id="form-chb-aspect"></div>
|
<div id="form-chb-aspect"></div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</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">
|
||||||
|
<div id="form-img-example"><%= scope.textImage %></div>
|
||||||
|
</div>
|
||||||
|
<div id="form-img-slider-position-y"></div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div id="form-img-slider-position-x"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
<tr class="form-image">
|
<tr class="form-image">
|
||||||
<td class="padding-large">
|
<td class="padding-large">
|
||||||
<div id="form-button-replace" style="width:100%;"></div>
|
<div id="form-button-replace" style="width:100%;"></div>
|
||||||
|
|
|
@ -423,6 +423,23 @@ define([
|
||||||
this.cmbScale.on('changed:after', this.onScaleChanged.bind(this));
|
this.cmbScale.on('changed:after', this.onScaleChanged.bind(this));
|
||||||
this.cmbScale.on('hide:after', this.onHideMenus.bind(this));
|
this.cmbScale.on('hide:after', this.onHideMenus.bind(this));
|
||||||
|
|
||||||
|
this.sldrPreviewPositionX = new Common.UI.SingleSlider({
|
||||||
|
el: $('#form-img-slider-position-x'),
|
||||||
|
width: 116,
|
||||||
|
minValue: 0,
|
||||||
|
maxValue: 100,
|
||||||
|
value: 50
|
||||||
|
});
|
||||||
|
|
||||||
|
this.sldrPreviewPositionY = new Common.UI.SingleSlider({
|
||||||
|
el: $('#form-img-slider-position-y'),
|
||||||
|
width: 116,
|
||||||
|
minValue: 0,
|
||||||
|
maxValue: 100,
|
||||||
|
value: 50,
|
||||||
|
direction: 'vertical'
|
||||||
|
});
|
||||||
|
|
||||||
this.updateMetricUnit();
|
this.updateMetricUnit();
|
||||||
this.UpdateThemeColors();
|
this.UpdateThemeColors();
|
||||||
},
|
},
|
||||||
|
@ -1149,7 +1166,8 @@ define([
|
||||||
textNever: 'Never',
|
textNever: 'Never',
|
||||||
textTooBig: 'Image is Too Big',
|
textTooBig: 'Image is Too Big',
|
||||||
textTooSmall: 'Image is Too Small',
|
textTooSmall: 'Image is Too Small',
|
||||||
textScale: 'When to scale'
|
textScale: 'When to scale',
|
||||||
|
textButton: 'Button'
|
||||||
|
|
||||||
}, DE.Views.FormSettings || {}));
|
}, DE.Views.FormSettings || {}));
|
||||||
});
|
});
|
|
@ -161,3 +161,36 @@
|
||||||
background-color: @background-normal-ie;
|
background-color: @background-normal-ie;
|
||||||
background-color: @background-normal;
|
background-color: @background-normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#form-cnt-position {
|
||||||
|
position: relative;
|
||||||
|
.row {
|
||||||
|
display: flex;
|
||||||
|
justify-content: flex-start;
|
||||||
|
}
|
||||||
|
#form-img-position-preview {
|
||||||
|
position: relative;
|
||||||
|
height: 130px;
|
||||||
|
width: 130px;
|
||||||
|
border: 1px solid @border-regular-control;
|
||||||
|
#form-img-example {
|
||||||
|
position: absolute;
|
||||||
|
top: 24px;
|
||||||
|
left: 24px;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
height: 80px;
|
||||||
|
width: 80px;
|
||||||
|
border: 1px solid @border-regular-control;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#form-img-slider-position-x {
|
||||||
|
margin-top: 4px;
|
||||||
|
margin-left: 7px;
|
||||||
|
}
|
||||||
|
#form-img-slider-position-y {
|
||||||
|
margin-top: 7px;
|
||||||
|
margin-left: 4px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue