Merge pull request #1860 from ONLYOFFICE/fix/bugfix

Fix Bug 58177
This commit is contained in:
Julia Radzhabova 2022-07-19 18:28:35 +03:00 committed by GitHub
commit 42b903f3ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 19 additions and 16 deletions

View file

@ -358,6 +358,9 @@ define([
Common.NotificationCenter.trigger('menu:hide', this, isFromInputControl);
if (this.options.takeFocusOnClose) {
var me = this;
(me._input && !me.editable) && (me._input[0].selectionStart===me._input[0].selectionEnd) && setTimeout(function() {
me._input[0].selectionStart = me._input[0].selectionEnd = 0;
},1);
setTimeout(function(){me.focus();}, 1);
}
},

View file

@ -179,8 +179,8 @@ define([ 'text!presentationeditor/main/app/template/ChartSettingsAdvanced.tem
this.cmbFromX = new Common.UI.ComboBox({
el: $('#chart-advanced-combo-from-x'),
cls: 'input-group-nr',
style: "width: 115px;",
menuStyle: 'min-width: 115px;',
style: "width: 125px;",
menuStyle: 'min-width: 125px;',
data: [
{ value: 'left', displayValue: this.textTopLeftCorner },
{ value: 'center', displayValue: this.textCenter }
@ -192,8 +192,8 @@ define([ 'text!presentationeditor/main/app/template/ChartSettingsAdvanced.tem
this.cmbFromY = new Common.UI.ComboBox({
el: $('#chart-advanced-combo-from-y'),
cls: 'input-group-nr',
style: "width: 115px;",
menuStyle: 'min-width: 115px;',
style: "width: 125px;",
menuStyle: 'min-width: 125px;',
data: [
{ value: 'left', displayValue: this.textTopLeftCorner },
{ value: 'center', displayValue: this.textCenter }

View file

@ -182,8 +182,8 @@ define([ 'text!presentationeditor/main/app/template/ImageSettingsAdvanced.tem
this.cmbFromX = new Common.UI.ComboBox({
el: $('#image-advanced-combo-from-x'),
cls: 'input-group-nr',
style: "width: 115px;",
menuStyle: 'min-width: 115px;',
style: "width: 125px;",
menuStyle: 'min-width: 125px;',
data: [
{ value: 'left', displayValue: this.textTopLeftCorner },
{ value: 'center', displayValue: this.textCenter }
@ -195,8 +195,8 @@ define([ 'text!presentationeditor/main/app/template/ImageSettingsAdvanced.tem
this.cmbFromY = new Common.UI.ComboBox({
el: $('#image-advanced-combo-from-y'),
cls: 'input-group-nr',
style: "width: 115px;",
menuStyle: 'min-width: 115px;',
style: "width: 125px;",
menuStyle: 'min-width: 125px;',
data: [
{ value: 'left', displayValue: this.textTopLeftCorner },
{ value: 'center', displayValue: this.textCenter }

View file

@ -187,8 +187,8 @@ define([ 'text!presentationeditor/main/app/template/ShapeSettingsAdvanced.tem
this.cmbFromX = new Common.UI.ComboBox({
el: $('#shape-advanced-combo-from-x'),
cls: 'input-group-nr',
style: "width: 115px;",
menuStyle: 'min-width: 115px;',
style: "width: 125px;",
menuStyle: 'min-width: 125px;',
data: [
{ value: 'left', displayValue: this.textTopLeftCorner },
{ value: 'center', displayValue: this.textCenter }
@ -200,8 +200,8 @@ define([ 'text!presentationeditor/main/app/template/ShapeSettingsAdvanced.tem
this.cmbFromY = new Common.UI.ComboBox({
el: $('#shape-advanced-combo-from-y'),
cls: 'input-group-nr',
style: "width: 115px;",
menuStyle: 'min-width: 115px;',
style: "width: 125px;",
menuStyle: 'min-width: 125px;',
data: [
{ value: 'left', displayValue: this.textTopLeftCorner },
{ value: 'center', displayValue: this.textCenter }

View file

@ -184,8 +184,8 @@ define([ 'text!presentationeditor/main/app/template/TableSettingsAdvanced.tem
this.cmbFromX = new Common.UI.ComboBox({
el: $('#tableadv-combo-from-x'),
cls: 'input-group-nr',
style: "width: 115px;",
menuStyle: 'min-width: 115px;',
style: "width: 125px;",
menuStyle: 'min-width: 125px;',
data: [
{ value: 'left', displayValue: this.textTopLeftCorner },
{ value: 'center', displayValue: this.textCenter }
@ -197,8 +197,8 @@ define([ 'text!presentationeditor/main/app/template/TableSettingsAdvanced.tem
this.cmbFromY = new Common.UI.ComboBox({
el: $('#tableadv-combo-from-y'),
cls: 'input-group-nr',
style: "width: 115px;",
menuStyle: 'min-width: 115px;',
style: "width: 125px;",
menuStyle: 'min-width: 125px;',
data: [
{ value: 'left', displayValue: this.textTopLeftCorner },
{ value: 'center', displayValue: this.textCenter }