Fix Bug 58177
This commit is contained in:
parent
40bdd4b160
commit
9a038b86fa
|
@ -358,6 +358,9 @@ define([
|
||||||
Common.NotificationCenter.trigger('menu:hide', this, isFromInputControl);
|
Common.NotificationCenter.trigger('menu:hide', this, isFromInputControl);
|
||||||
if (this.options.takeFocusOnClose) {
|
if (this.options.takeFocusOnClose) {
|
||||||
var me = this;
|
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);
|
setTimeout(function(){me.focus();}, 1);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -179,8 +179,8 @@ define([ 'text!presentationeditor/main/app/template/ChartSettingsAdvanced.tem
|
||||||
this.cmbFromX = new Common.UI.ComboBox({
|
this.cmbFromX = new Common.UI.ComboBox({
|
||||||
el: $('#chart-advanced-combo-from-x'),
|
el: $('#chart-advanced-combo-from-x'),
|
||||||
cls: 'input-group-nr',
|
cls: 'input-group-nr',
|
||||||
style: "width: 115px;",
|
style: "width: 125px;",
|
||||||
menuStyle: 'min-width: 115px;',
|
menuStyle: 'min-width: 125px;',
|
||||||
data: [
|
data: [
|
||||||
{ value: 'left', displayValue: this.textTopLeftCorner },
|
{ value: 'left', displayValue: this.textTopLeftCorner },
|
||||||
{ value: 'center', displayValue: this.textCenter }
|
{ value: 'center', displayValue: this.textCenter }
|
||||||
|
@ -192,8 +192,8 @@ define([ 'text!presentationeditor/main/app/template/ChartSettingsAdvanced.tem
|
||||||
this.cmbFromY = new Common.UI.ComboBox({
|
this.cmbFromY = new Common.UI.ComboBox({
|
||||||
el: $('#chart-advanced-combo-from-y'),
|
el: $('#chart-advanced-combo-from-y'),
|
||||||
cls: 'input-group-nr',
|
cls: 'input-group-nr',
|
||||||
style: "width: 115px;",
|
style: "width: 125px;",
|
||||||
menuStyle: 'min-width: 115px;',
|
menuStyle: 'min-width: 125px;',
|
||||||
data: [
|
data: [
|
||||||
{ value: 'left', displayValue: this.textTopLeftCorner },
|
{ value: 'left', displayValue: this.textTopLeftCorner },
|
||||||
{ value: 'center', displayValue: this.textCenter }
|
{ value: 'center', displayValue: this.textCenter }
|
||||||
|
|
|
@ -182,8 +182,8 @@ define([ 'text!presentationeditor/main/app/template/ImageSettingsAdvanced.tem
|
||||||
this.cmbFromX = new Common.UI.ComboBox({
|
this.cmbFromX = new Common.UI.ComboBox({
|
||||||
el: $('#image-advanced-combo-from-x'),
|
el: $('#image-advanced-combo-from-x'),
|
||||||
cls: 'input-group-nr',
|
cls: 'input-group-nr',
|
||||||
style: "width: 115px;",
|
style: "width: 125px;",
|
||||||
menuStyle: 'min-width: 115px;',
|
menuStyle: 'min-width: 125px;',
|
||||||
data: [
|
data: [
|
||||||
{ value: 'left', displayValue: this.textTopLeftCorner },
|
{ value: 'left', displayValue: this.textTopLeftCorner },
|
||||||
{ value: 'center', displayValue: this.textCenter }
|
{ value: 'center', displayValue: this.textCenter }
|
||||||
|
@ -195,8 +195,8 @@ define([ 'text!presentationeditor/main/app/template/ImageSettingsAdvanced.tem
|
||||||
this.cmbFromY = new Common.UI.ComboBox({
|
this.cmbFromY = new Common.UI.ComboBox({
|
||||||
el: $('#image-advanced-combo-from-y'),
|
el: $('#image-advanced-combo-from-y'),
|
||||||
cls: 'input-group-nr',
|
cls: 'input-group-nr',
|
||||||
style: "width: 115px;",
|
style: "width: 125px;",
|
||||||
menuStyle: 'min-width: 115px;',
|
menuStyle: 'min-width: 125px;',
|
||||||
data: [
|
data: [
|
||||||
{ value: 'left', displayValue: this.textTopLeftCorner },
|
{ value: 'left', displayValue: this.textTopLeftCorner },
|
||||||
{ value: 'center', displayValue: this.textCenter }
|
{ value: 'center', displayValue: this.textCenter }
|
||||||
|
|
|
@ -187,8 +187,8 @@ define([ 'text!presentationeditor/main/app/template/ShapeSettingsAdvanced.tem
|
||||||
this.cmbFromX = new Common.UI.ComboBox({
|
this.cmbFromX = new Common.UI.ComboBox({
|
||||||
el: $('#shape-advanced-combo-from-x'),
|
el: $('#shape-advanced-combo-from-x'),
|
||||||
cls: 'input-group-nr',
|
cls: 'input-group-nr',
|
||||||
style: "width: 115px;",
|
style: "width: 125px;",
|
||||||
menuStyle: 'min-width: 115px;',
|
menuStyle: 'min-width: 125px;',
|
||||||
data: [
|
data: [
|
||||||
{ value: 'left', displayValue: this.textTopLeftCorner },
|
{ value: 'left', displayValue: this.textTopLeftCorner },
|
||||||
{ value: 'center', displayValue: this.textCenter }
|
{ value: 'center', displayValue: this.textCenter }
|
||||||
|
@ -200,8 +200,8 @@ define([ 'text!presentationeditor/main/app/template/ShapeSettingsAdvanced.tem
|
||||||
this.cmbFromY = new Common.UI.ComboBox({
|
this.cmbFromY = new Common.UI.ComboBox({
|
||||||
el: $('#shape-advanced-combo-from-y'),
|
el: $('#shape-advanced-combo-from-y'),
|
||||||
cls: 'input-group-nr',
|
cls: 'input-group-nr',
|
||||||
style: "width: 115px;",
|
style: "width: 125px;",
|
||||||
menuStyle: 'min-width: 115px;',
|
menuStyle: 'min-width: 125px;',
|
||||||
data: [
|
data: [
|
||||||
{ value: 'left', displayValue: this.textTopLeftCorner },
|
{ value: 'left', displayValue: this.textTopLeftCorner },
|
||||||
{ value: 'center', displayValue: this.textCenter }
|
{ value: 'center', displayValue: this.textCenter }
|
||||||
|
|
|
@ -184,8 +184,8 @@ define([ 'text!presentationeditor/main/app/template/TableSettingsAdvanced.tem
|
||||||
this.cmbFromX = new Common.UI.ComboBox({
|
this.cmbFromX = new Common.UI.ComboBox({
|
||||||
el: $('#tableadv-combo-from-x'),
|
el: $('#tableadv-combo-from-x'),
|
||||||
cls: 'input-group-nr',
|
cls: 'input-group-nr',
|
||||||
style: "width: 115px;",
|
style: "width: 125px;",
|
||||||
menuStyle: 'min-width: 115px;',
|
menuStyle: 'min-width: 125px;',
|
||||||
data: [
|
data: [
|
||||||
{ value: 'left', displayValue: this.textTopLeftCorner },
|
{ value: 'left', displayValue: this.textTopLeftCorner },
|
||||||
{ value: 'center', displayValue: this.textCenter }
|
{ value: 'center', displayValue: this.textCenter }
|
||||||
|
@ -197,8 +197,8 @@ define([ 'text!presentationeditor/main/app/template/TableSettingsAdvanced.tem
|
||||||
this.cmbFromY = new Common.UI.ComboBox({
|
this.cmbFromY = new Common.UI.ComboBox({
|
||||||
el: $('#tableadv-combo-from-y'),
|
el: $('#tableadv-combo-from-y'),
|
||||||
cls: 'input-group-nr',
|
cls: 'input-group-nr',
|
||||||
style: "width: 115px;",
|
style: "width: 125px;",
|
||||||
menuStyle: 'min-width: 115px;',
|
menuStyle: 'min-width: 125px;',
|
||||||
data: [
|
data: [
|
||||||
{ value: 'left', displayValue: this.textTopLeftCorner },
|
{ value: 'left', displayValue: this.textTopLeftCorner },
|
||||||
{ value: 'center', displayValue: this.textCenter }
|
{ value: 'center', displayValue: this.textCenter }
|
||||||
|
|
Loading…
Reference in a new issue