IDEMPIERE-231 Zk6: Improve the tablet experience. Use fixed paging size ( 20 ) for better performance.
This commit is contained in:
parent
fadd9c9b83
commit
d1f5d4e3e9
|
@ -121,7 +121,15 @@ public class GridPanel extends Borderlayout implements EventListener<Event>
|
|||
this.appendChild(south);
|
||||
|
||||
//default paging size
|
||||
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);
|
||||
|
|
Loading…
Reference in New Issue