diff --git a/apps/documenteditor/main/app/controller/Toolbar.js b/apps/documenteditor/main/app/controller/Toolbar.js index a66896dd9..772d0a725 100644 --- a/apps/documenteditor/main/app/controller/Toolbar.js +++ b/apps/documenteditor/main/app/controller/Toolbar.js @@ -1341,18 +1341,17 @@ define([ if (!value) { value = this._getApiTextSize(); - - Common.UI.warning({ - msg: this.textFontSizeErr, - callback: function() { - _.defer(function(btn) { - $('input', combo.cmpEl).focus(); - }) - } - }); - + setTimeout(function(){ + Common.UI.warning({ + msg: me.textFontSizeErr, + callback: function() { + _.defer(function(btn) { + $('input', combo.cmpEl).focus(); + }) + } + }); + }, 1); combo.setRawValue(value); - e.preventDefault(); return false; } diff --git a/apps/presentationeditor/main/app/controller/Toolbar.js b/apps/presentationeditor/main/app/controller/Toolbar.js index 4d863cbf0..d3b7b2ac9 100644 --- a/apps/presentationeditor/main/app/controller/Toolbar.js +++ b/apps/presentationeditor/main/app/controller/Toolbar.js @@ -1324,18 +1324,17 @@ define([ if (!value) { value = this._getApiTextSize(); - - Common.UI.warning({ - msg: this.textFontSizeErr, - callback: function() { - _.defer(function(btn) { - $('input', combo.cmpEl).focus(); - }) - } - }); - + setTimeout(function(){ + Common.UI.warning({ + msg: me.textFontSizeErr, + callback: function() { + _.defer(function(btn) { + $('input', combo.cmpEl).focus(); + }) + } + }); + }, 1); combo.setRawValue(value); - e.preventDefault(); return false; } diff --git a/apps/spreadsheeteditor/main/app/controller/Toolbar.js b/apps/spreadsheeteditor/main/app/controller/Toolbar.js index 834cfd680..97e314757 100644 --- a/apps/spreadsheeteditor/main/app/controller/Toolbar.js +++ b/apps/spreadsheeteditor/main/app/controller/Toolbar.js @@ -1625,18 +1625,17 @@ define([ if (!value) { value = this._getApiTextSize(); - - Common.UI.warning({ - msg: this.textFontSizeErr, - callback: function() { - _.defer(function(btn) { - $('input', combo.cmpEl).focus(); - }) - } - }); - + setTimeout(function(){ + Common.UI.warning({ + msg: me.textFontSizeErr, + callback: function() { + _.defer(function(btn) { + $('input', combo.cmpEl).focus(); + }) + } + }); + }, 1); combo.setRawValue(value); - e.preventDefault(); return false; }