From e3499ad0b41a66345312b1753478aa249baf3cf5 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Mon, 25 Jul 2022 23:17:10 +0300 Subject: [PATCH] Fix Bug 58276 --- .../less/advanced-settings-window.less | 27 +++++++++++++++- .../main/app/view/ImageSettingsAdvanced.js | 18 ++++++++--- .../resources/less/advanced-settings.less | 22 ------------- .../main/app/view/ShapeSettingsAdvanced.js | 18 ++++++++--- .../resources/less/advanced-settings.less | 31 ------------------- .../main/app/view/ShapeSettingsAdvanced.js | 18 ++++++++--- .../resources/less/advanced-settings.less | 31 ------------------- 7 files changed, 65 insertions(+), 100 deletions(-) diff --git a/apps/common/main/resources/less/advanced-settings-window.less b/apps/common/main/resources/less/advanced-settings-window.less index 49085e69c..2f1001059 100644 --- a/apps/common/main/resources/less/advanced-settings-window.less +++ b/apps/common/main/resources/less/advanced-settings-window.less @@ -52,4 +52,29 @@ padding-right: 30px; } } -} \ No newline at end of file +} + +.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; +} diff --git a/apps/documenteditor/main/app/view/ImageSettingsAdvanced.js b/apps/documenteditor/main/app/view/ImageSettingsAdvanced.js index 5a345e2d2..dea267880 100644 --- a/apps/documenteditor/main/app/view/ImageSettingsAdvanced.js +++ b/apps/documenteditor/main/app/view/ImageSettingsAdvanced.js @@ -1015,7 +1015,9 @@ define([ 'text!documenteditor/main/app/template/ImageSettingsAdvanced.templat el: $('#shape-advanced-begin-style'), template: _.template([ '' @@ -433,7 +435,9 @@ define([ 'text!presentationeditor/main/app/template/ShapeSettingsAdvanced.tem el: $('#shape-advanced-begin-size'), template: _.template([ '' @@ -466,7 +470,9 @@ define([ 'text!presentationeditor/main/app/template/ShapeSettingsAdvanced.tem el: $('#shape-advanced-end-style'), template: _.template([ '' @@ -493,7 +499,9 @@ define([ 'text!presentationeditor/main/app/template/ShapeSettingsAdvanced.tem el: $('#shape-advanced-end-size'), template: _.template([ '' @@ -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')); }, diff --git a/apps/presentationeditor/main/resources/less/advanced-settings.less b/apps/presentationeditor/main/resources/less/advanced-settings.less index 5bc3951fd..7d3cf7c5f 100644 --- a/apps/presentationeditor/main/resources/less/advanced-settings.less +++ b/apps/presentationeditor/main/resources/less/advanced-settings.less @@ -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; diff --git a/apps/spreadsheeteditor/main/app/view/ShapeSettingsAdvanced.js b/apps/spreadsheeteditor/main/app/view/ShapeSettingsAdvanced.js index c39790d4e..5646a2e75 100644 --- a/apps/spreadsheeteditor/main/app/view/ShapeSettingsAdvanced.js +++ b/apps/spreadsheeteditor/main/app/view/ShapeSettingsAdvanced.js @@ -376,7 +376,9 @@ define([ 'text!spreadsheeteditor/main/app/template/ShapeSettingsAdvanced.temp el: $('#shape-advanced-begin-style'), template: _.template([ '' @@ -403,7 +405,9 @@ define([ 'text!spreadsheeteditor/main/app/template/ShapeSettingsAdvanced.temp el: $('#shape-advanced-begin-size'), template: _.template([ '' @@ -436,7 +440,9 @@ define([ 'text!spreadsheeteditor/main/app/template/ShapeSettingsAdvanced.temp el: $('#shape-advanced-end-style'), template: _.template([ '' @@ -463,7 +469,9 @@ define([ 'text!spreadsheeteditor/main/app/template/ShapeSettingsAdvanced.temp el: $('#shape-advanced-end-size'), template: _.template([ '' @@ -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')); }, diff --git a/apps/spreadsheeteditor/main/resources/less/advanced-settings.less b/apps/spreadsheeteditor/main/resources/less/advanced-settings.less index 7fa069051..eaa2ab0f4 100644 --- a/apps/spreadsheeteditor/main/resources/less/advanced-settings.less +++ b/apps/spreadsheeteditor/main/resources/less/advanced-settings.less @@ -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;