diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/ADTabpanel.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/ADTabpanel.java index 7f84f5f7da..60ddef96de 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/ADTabpanel.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/ADTabpanel.java @@ -364,6 +364,8 @@ DataStatusListener, IADTabpanel, IdSpace, IFieldEditorContainer Borderlayout layout = new Borderlayout(); layout.setParent(this); layout.setSclass("adtab-form-borderlayout"); + if (ClientInfo.isMobile()) + LayoutUtils.addSclass("mobile", layout); treePanel = new ADTreePanel(windowNo, gridTab.getTabNo()); West west = new West(); @@ -407,6 +409,8 @@ DataStatusListener, IADTabpanel, IdSpace, IFieldEditorContainer Borderlayout layout = new Borderlayout(); layout.setParent(this); layout.setSclass("adtab-form-borderlayout"); + if (ClientInfo.isMobile()) + LayoutUtils.addSclass("mobile", layout); Center center = new Center(); layout.appendChild(center); diff --git a/org.adempiere.ui.zk/theme/default/css/fragment/adwindow.css.dsp b/org.adempiere.ui.zk/theme/default/css/fragment/adwindow.css.dsp index b24c341c05..aec6d32acd 100644 --- a/org.adempiere.ui.zk/theme/default/css/fragment/adwindow.css.dsp +++ b/org.adempiere.ui.zk/theme/default/css/fragment/adwindow.css.dsp @@ -251,3 +251,27 @@ left: 4px; height: 12px; } + +@media screen and (max-height: 767px) { + .adtab-form-borderlayout.mobile.z-borderlayout > div > .z-south-collapsed > .z-borderlayout-icon.z-icon-chevron-up { + display: none; + } + .adtab-form-borderlayout.mobile.z-borderlayout > div > .adwindow-gridview-detail.z-south { + height: 50% !important; + } +} +@media screen and (max-height: 600px) { + .adtab-form-borderlayout.mobile.z-borderlayout > div > .adwindow-gridview-detail.z-south { + height: 60% !important; + } +} +@media screen and (max-height: 500px) { + .adtab-form-borderlayout.mobile.z-borderlayout > div > .adwindow-gridview-detail.z-south { + height: 70% !important; + } +} +@media screen and (max-height: 400px) { + .adtab-form-borderlayout.mobile.z-borderlayout > div > .adwindow-gridview-detail.z-south { + height: 80% !important; + } +} diff --git a/org.adempiere.ui.zk/theme/default/css/fragment/desktop.css.dsp b/org.adempiere.ui.zk/theme/default/css/fragment/desktop.css.dsp index d1c26cac2c..aab47071bc 100644 --- a/org.adempiere.ui.zk/theme/default/css/fragment/desktop.css.dsp +++ b/org.adempiere.ui.zk/theme/default/css/fragment/desktop.css.dsp @@ -240,11 +240,3 @@ padding: 3px 3px; } -@media screen and (max-height: 767px) { - .adtab-form-borderlayout.z-borderlayout > div > .z-south-collapsed > .z-borderlayout-icon.z-icon-chevron-up { - display: none; - } - .adtab-form-borderlayout.z-borderlayout > div > .adwindow-gridview-detail.z-south { - height: 80%; - } -}