diff --git a/web/org.openbravo.mobile.core/source/component/ob-terminal-component.js b/web/org.openbravo.mobile.core/source/component/ob-terminal-component.js
index cae19450356a8378aea574ee970abf1d4700c060..7ab3c234805aeecc1dda0397458887f944365c1b 100644
--- a/web/org.openbravo.mobile.core/source/component/ob-terminal-component.js
+++ b/web/org.openbravo.mobile.core/source/component/ob-terminal-component.js
@@ -1,6 +1,6 @@
 /*
  ************************************************************************************
- * Copyright (C) 2012-2022 Openbravo S.L.U.
+ * Copyright (C) 2012-2023 Openbravo S.L.U.
  * Licensed under the Openbravo Commercial License version 1.0
  * You may obtain a copy of the License at http://www.openbravo.com/legal/obcl.html
  * or in the legal folder of this module distribution.
@@ -472,6 +472,7 @@ enyo.kind({
     // hack: virtual keyboard is detected because only y is resized but not x
     if (
       !this.sizeProperties ||
+      this.sizeProperties.o !== window.screen.orientation.angle ||
       (this.sizeProperties.x !== winWidth &&
         this.sizeProperties.y !== winHeight)
     ) {
@@ -481,7 +482,8 @@ enyo.kind({
       this.waterfall('onDestroyMenu');
       this.sizeProperties = {
         x: window.innerWidth,
-        y: window.innerHeight
+        y: window.innerHeight,
+        o: window.screen.orientation.angle
       };
 
       if (window.innerWidth / window.innerHeight > 9 / 16) {
