From d1f5d4e3e96bd5fe1e98bf3ba453a029a15aba80 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Thu, 26 Apr 2012 23:15:15 +0800 Subject: [PATCH] IDEMPIERE-231 Zk6: Improve the tablet experience. Use fixed paging size ( 20 ) for better performance. --- .../src/org/adempiere/webui/component/GridPanel.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/GridPanel.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/GridPanel.java index 9a5113e991..48cc3fba00 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/GridPanel.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/GridPanel.java @@ -121,7 +121,15 @@ public class GridPanel extends Borderlayout implements EventListener this.appendChild(south); //default paging size - pageSize = MSysConfig.getIntValue(PAGE_SIZE_KEY, 100); + if (AEnv.isTablet()) + { + //anything more than 20 is very slow on a tablet + pageSize = 20; + } + else + { + pageSize = MSysConfig.getIntValue(PAGE_SIZE_KEY, 100); + } //default true for better UI experience modeless = MSysConfig.getBooleanValue(MODE_LESS_KEY, true);