diff --git a/web/org.openbravo.mobile.core/source/component/ob-commonbuttons.js b/web/org.openbravo.mobile.core/source/component/ob-commonbuttons.js
--- a/web/org.openbravo.mobile.core/source/component/ob-commonbuttons.js
+++ b/web/org.openbravo.mobile.core/source/component/ob-commonbuttons.js
@@ -956,7 +956,7 @@
   maxHeight: 18,
   resizeHandler: function () {
     this.inherited(arguments);
-    OB.UTIL.calculateFontSizes(this.id, this.minFontSize, this.maxFontSize, this.maxHeight);
+    OB.UTIL.adaptFontSize(this.id, this.minFontSize, this.maxFontSize, this.maxHeight);
     this.removeClass('transparent');
   },
   initComponents: function () {
@@ -965,7 +965,7 @@
   },
   rendered: function () {
     this.inherited(arguments);
-    OB.UTIL.calculateFontSizes(this.id, this.minFontSize, this.maxFontSize, this.maxHeight);
+    OB.UTIL.adaptFontSize(this.id, this.minFontSize, this.maxFontSize, this.maxHeight);
     this.removeClass('transparent');
   }
 });
\ No newline at end of file
diff --git a/web/org.openbravo.mobile.core/source/utils/ob-utilitiesui.js b/web/org.openbravo.mobile.core/source/utils/ob-utilitiesui.js
--- a/web/org.openbravo.mobile.core/source/utils/ob-utilitiesui.js
+++ b/web/org.openbravo.mobile.core/source/utils/ob-utilitiesui.js
@@ -702,7 +702,7 @@
   }
 };
 
-OB.UTIL.calculateFontSizes = function (objId, minFntSz, maxFntSz, maxHgt) {
+OB.UTIL.adaptFontSize = function (objId, minFntSz, maxFntSz, maxHgt, minLengthForCalc) {
 
   var maxWidth = false,
       currentWidth = false,
@@ -711,7 +711,8 @@
       classNameArr = ['fitText', 'buttonText'],
       minFontSize = minFntSz || 9,
       maxFontSize = maxFntSz || 16,
-      maxHeight = maxHgt || 18;
+      maxHeight = maxHgt || 18,
+      minLengthForCalc = minLengthForCalc || 10;
 
   function fit(maxFontSize) {
     //to number
@@ -738,7 +739,7 @@
   currentTextObj = currentBox.getElementsByTagName('SPAN')[0];
   currentTextObj.style.fontSize = maxFontSize + 'px';
   maxWidth = currentBox.offsetWidth;
-  if (currentTextObj.offsetWidth !== 0 && currentTextObj.textContent.length >= 10) {
+  if (currentTextObj.offsetWidth !== 0 && currentTextObj.textContent.length >= minLengthForCalc) {
     // start with the minFontSize(9px or 16px) to reduce iterations
     // 9px is the minimum font size for the text and 16px is the minimun font size for the button
     currentTextObj.style.fontSize = minFontSize + 'px';
