Fix Bug 58276

This commit is contained in:
Julia Radzhabova 2022-07-25 23:17:10 +03:00
parent 5ff1d0f48b
commit e3499ad0b4
7 changed files with 65 additions and 100 deletions

View file

@ -53,3 +53,28 @@
}
}
}
.combo-arrow-style {
.form-control {
cursor: pointer;
.image {
width: 100%;
height: 100%;
display: inline-block;
background-color: transparent;
margin: 0 0 0 -3px;
}
}
}
.img-arrows {
.background-ximage-v2('right-panels/Begin-EndStyle.png', 480px);
-webkit-filter: @img-border-type-filter;
filter: @img-border-type-filter;
}
.item-arrow {
width:44px;
height:20px;
}

View file

@ -1015,7 +1015,9 @@ define([ 'text!documenteditor/main/app/template/ImageSettingsAdvanced.templat
el: $('#shape-advanced-begin-style'),
template: _.template([
'<div class="input-group combobox combo-dataview-menu input-group-nr dropdown-toggle combo-arrow-style" data-toggle="dropdown">',
'<div class="img-arrows form-control image" style="width: 100px;"></div>',
'<div class="form-control" style="width: 100px;">',
'<i class="image img-arrows"></i>',
'</div>',
'<div style="display: table-cell;"></div>',
'<button type="button" class="btn btn-default">',
'<span class="caret"></span>',
@ -1044,7 +1046,9 @@ define([ 'text!documenteditor/main/app/template/ImageSettingsAdvanced.templat
el: $('#shape-advanced-begin-size'),
template: _.template([
'<div class="input-group combobox combo-dataview-menu input-group-nr dropdown-toggle combo-arrow-style" data-toggle="dropdown">',
'<div class="img-arrows form-control image" style="width: 100px;"></div>',
'<div class="form-control" style="width: 100px;">',
'<i class="image img-arrows"></i>',
'</div>',
'<div style="display: table-cell;"></div>',
'<button type="button" class="btn btn-default">',
'<span class="caret"></span>',
@ -1079,7 +1083,9 @@ define([ 'text!documenteditor/main/app/template/ImageSettingsAdvanced.templat
el: $('#shape-advanced-end-style'),
template: _.template([
'<div class="input-group combobox combo-dataview-menu input-group-nr dropdown-toggle combo-arrow-style" data-toggle="dropdown">',
'<div class="img-arrows form-control image" style="width: 100px;"></div>',
'<div class="form-control" style="width: 100px;">',
'<i class="image img-arrows"></i>',
'</div>',
'<div style="display: table-cell;"></div>',
'<button type="button" class="btn btn-default">',
'<span class="caret"></span>',
@ -1108,7 +1114,9 @@ define([ 'text!documenteditor/main/app/template/ImageSettingsAdvanced.templat
el: $('#shape-advanced-end-size'),
template: _.template([
'<div class="input-group combobox combo-dataview-menu input-group-nr dropdown-toggle combo-arrow-style" data-toggle="dropdown">',
'<div class="img-arrows form-control image" style="width: 100px;"></div>',
'<div class="form-control" style="width: 100px;">',
'<i class="image img-arrows"></i>',
'</div>',
'<div style="display: table-cell;"></div>',
'<button type="button" class="btn btn-default">',
'<span class="caret"></span>',
@ -2083,7 +2091,7 @@ define([ 'text!documenteditor/main/app/template/ImageSettingsAdvanced.templat
},
_selectStyleItem: function(combo, record) {
var formcontrol = $(combo.el).find('.form-control');
var formcontrol = $(combo.el).find('.form-control > .image');
formcontrol.css('background-position', ((record) ? (-record.get('offsetx')+20) + 'px' : '0') + ' ' + ((record) ? '-' + record.get('offsety') + 'px' : '-30px'));
},

View file

@ -4,28 +4,6 @@
.icon-advanced-wrap {
}
.combo-arrow-style {
.form-control {
cursor: pointer;
background-color: white;
&.image {
background-position: 10px 0;
background-attachment: scroll;
background-color: @background-normal;
}
}
}
.img-arrows {
.background-ximage-v2('right-panels/Begin-EndStyle.png', 480px, @commonimage: true);
}
.item-arrow {
width:44px;
height:20px;
}
.header-styles-tableview {
.list-item > div{
&:nth-child(1) {

View file

@ -406,7 +406,9 @@ define([ 'text!presentationeditor/main/app/template/ShapeSettingsAdvanced.tem
el: $('#shape-advanced-begin-style'),
template: _.template([
'<div class="input-group combobox combo-dataview-menu input-group-nr dropdown-toggle combo-arrow-style" data-toggle="dropdown">',
'<div class="img-arrows form-control image" style="width: 100px;"></div>',
'<div class="form-control" style="width: 100px;">',
'<i class="image img-arrows"></i>',
'</div>',
'<div style="display: table-cell;"></div>',
'<button type="button" class="btn btn-default"><span class="caret"></span></button>',
'</div>'
@ -433,7 +435,9 @@ define([ 'text!presentationeditor/main/app/template/ShapeSettingsAdvanced.tem
el: $('#shape-advanced-begin-size'),
template: _.template([
'<div class="input-group combobox combo-dataview-menu input-group-nr dropdown-toggle combo-arrow-style" data-toggle="dropdown">',
'<div class="img-arrows form-control image" style="width: 100px;"></div>',
'<div class="form-control" style="width: 100px;">',
'<i class="image img-arrows"></i>',
'</div>',
'<div style="display: table-cell;"></div>',
'<button type="button" class="btn btn-default"><span class="caret"></span></button>',
'</div>'
@ -466,7 +470,9 @@ define([ 'text!presentationeditor/main/app/template/ShapeSettingsAdvanced.tem
el: $('#shape-advanced-end-style'),
template: _.template([
'<div class="input-group combobox combo-dataview-menu input-group-nr dropdown-toggle combo-arrow-style" data-toggle="dropdown">',
'<div class="img-arrows form-control image" style="width: 100px;"></div>',
'<div class="form-control" style="width: 100px;">',
'<i class="image img-arrows"></i>',
'</div>',
'<div style="display: table-cell;"></div>',
'<button type="button" class="btn btn-default"><span class="caret"></span></button>',
'</div>'
@ -493,7 +499,9 @@ define([ 'text!presentationeditor/main/app/template/ShapeSettingsAdvanced.tem
el: $('#shape-advanced-end-size'),
template: _.template([
'<div class="input-group combobox combo-dataview-menu input-group-nr dropdown-toggle combo-arrow-style" data-toggle="dropdown">',
'<div class="img-arrows form-control image" style="width: 100px;"></div>',
'<div class="form-control" style="width: 100px;">',
'<i class="image img-arrows"></i>',
'</div>',
'<div style="display: table-cell;"></div>',
'<button type="button" class="btn btn-default"><span class="caret"></span></button>',
'</div>'
@ -853,7 +861,7 @@ define([ 'text!presentationeditor/main/app/template/ShapeSettingsAdvanced.tem
},
_selectStyleItem: function(combo, record) {
var formcontrol = $(combo.el).find('.form-control');
var formcontrol = $(combo.el).find('.form-control > .image');
formcontrol.css('background-position', ((record) ? (-record.get('offsetx')+20) + 'px' : '0') + ' ' + ((record) ? '-' + record.get('offsety') + 'px' : '-30px'));
},

View file

@ -1,34 +1,3 @@
.combo-arrow-style {
.form-control {
cursor: pointer;
background-color: white;
&.image {
background-position: 10px 0;
background-attachment: scroll;
background-color: @background-normal;
}
}
.btn {
&:active:not(.disabled),
&.active:not(.disabled){
.caret {
background-position: @arrow-small-offset-x @arrow-small-offset-y;
}
}
}
}
.img-arrows {
.background-ximage-v2('right-panels/Begin-EndStyle.png', 480px, @commonimage: true);
}
.item-arrow {
width:44px;
height:20px;
}
.advanced-settings-dlg {
.div-category {
padding: 0 15px;

View file

@ -376,7 +376,9 @@ define([ 'text!spreadsheeteditor/main/app/template/ShapeSettingsAdvanced.temp
el: $('#shape-advanced-begin-style'),
template: _.template([
'<div class="input-group combobox combo-dataview-menu input-group-nr dropdown-toggle combo-arrow-style" data-toggle="dropdown">',
'<div class="img-arrows form-control image" style="width: 100px;"></div>',
'<div class="form-control" style="width: 100px;">',
'<i class="image img-arrows"></i>',
'</div>',
'<div style="display: table-cell;"></div>',
'<button type="button" class="btn btn-default"><span class="caret"></span></button>',
'</div>'
@ -403,7 +405,9 @@ define([ 'text!spreadsheeteditor/main/app/template/ShapeSettingsAdvanced.temp
el: $('#shape-advanced-begin-size'),
template: _.template([
'<div class="input-group combobox combo-dataview-menu input-group-nr dropdown-toggle combo-arrow-style" data-toggle="dropdown">',
'<div class="img-arrows form-control image" style="width: 100px;"></div>',
'<div class="form-control" style="width: 100px;">',
'<i class="image img-arrows"></i>',
'</div>',
'<div style="display: table-cell;"></div>',
'<button type="button" class="btn btn-default"><span class="caret"></span></button>',
'</div>'
@ -436,7 +440,9 @@ define([ 'text!spreadsheeteditor/main/app/template/ShapeSettingsAdvanced.temp
el: $('#shape-advanced-end-style'),
template: _.template([
'<div class="input-group combobox combo-dataview-menu input-group-nr dropdown-toggle combo-arrow-style" data-toggle="dropdown">',
'<div class="img-arrows form-control image" style="width: 100px;"></div>',
'<div class="form-control" style="width: 100px;">',
'<i class="image img-arrows"></i>',
'</div>',
'<div style="display: table-cell;"></div>',
'<button type="button" class="btn btn-default"><span class="caret"></span></button>',
'</div>'
@ -463,7 +469,9 @@ define([ 'text!spreadsheeteditor/main/app/template/ShapeSettingsAdvanced.temp
el: $('#shape-advanced-end-size'),
template: _.template([
'<div class="input-group combobox combo-dataview-menu input-group-nr dropdown-toggle combo-arrow-style" data-toggle="dropdown">',
'<div class="img-arrows form-control image" style="width: 100px;"></div>',
'<div class="form-control" style="width: 100px;">',
'<i class="image img-arrows"></i>',
'</div>',
'<div style="display: table-cell;"></div>',
'<button type="button" class="btn btn-default"><span class="caret"></span></button>',
'</div>'
@ -835,7 +843,7 @@ define([ 'text!spreadsheeteditor/main/app/template/ShapeSettingsAdvanced.temp
},
_selectStyleItem: function(combo, record) {
var formcontrol = $(combo.el).find('.form-control');
var formcontrol = $(combo.el).find('.form-control > .image');
formcontrol.css('background-position', ((record) ? (-record.get('offsetx')+20) + 'px' : '0') + ' ' + ((record) ? '-' + record.get('offsety') + 'px' : '-30px'));
},

View file

@ -1,34 +1,3 @@
.combo-arrow-style {
.form-control {
cursor: pointer;
background-color: white;
&.image {
background-position: 10px 0;
background-attachment: scroll;
background-color: @background-normal;
}
}
.btn {
&:active:not(.disabled),
&.active:not(.disabled){
.caret {
background-position: @arrow-small-offset-x @arrow-small-offset-y;
}
}
}
}
.img-arrows {
.background-ximage-v2('right-panels/Begin-EndStyle.png', 480px, @commonimage: true);
}
.item-arrow {
width:44px;
height:20px;
}
.advanced-settings-dlg {
.div-category {
padding: 0 0 0 10px;