diff --git a/web/org.openbravo.mobile.core/source/component/ob-commonbuttons.js b/web/org.openbravo.mobile.core/source/component/ob-commonbuttons.js
index 8d5ef7ef..34eb5f12 100644
--- a/web/org.openbravo.mobile.core/source/component/ob-commonbuttons.js
+++ b/web/org.openbravo.mobile.core/source/component/ob-commonbuttons.js
@@ -785,7 +785,13 @@ enyo.kind({
 
     if (top.indexOf('%') !== -1) {
       this.addStyles('top: ' + top);
-      if (t.height !== 0) {
+      if (t.top < 0) {
+        this.addStyles(
+          'margin-top: -' +
+            Math.max(t.height / 2 + t.top - 10, 0).toString() +
+            'px;'
+        );
+      } else if (t.height !== 0 && t.top > 20) {
         this.addStyles(
           'margin-top: -' + Math.max(t.height / 2, 0).toString() + 'px;'
         );
