From c50d8ff703bca491cfb0f38edba067c4343e89be Mon Sep 17 00:00:00 2001 From: Diego Ruiz Date: Mon, 10 Feb 2020 18:58:50 +0100 Subject: [PATCH] IDEMPIERE-4165 Fix problem for case #5 reported in the ticket --- .../src/org/adempiere/webui/adwindow/ADTabpanel.java | 2 +- .../WEB-INF/src/org/adempiere/webui/adwindow/GridView.java | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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 3224c1c5cc..c0f96c9dcd 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 @@ -1653,7 +1653,7 @@ DataStatusListener, IADTabpanel, IdSpace, IFieldEditorContainer if (listPanel.isVisible()) { listPanel.refresh(gridTab); listPanel.scrollToCurrentRow(); - Clients.resize(listPanel.getListbox()); + listPanel.getListbox().invalidate(); } else { listPanel.deactivate(); } diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/GridView.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/GridView.java index 5d1671a4c5..658176a51b 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/GridView.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/GridView.java @@ -356,7 +356,7 @@ public class GridView extends Vlayout implements EventListener, IdSpace, showRecordsCount(); } if (this.isVisible()) - Clients.resize(listbox); + listbox.invalidate(); } /** @@ -729,7 +729,7 @@ public class GridView extends Vlayout implements EventListener, IdSpace, listModel.setPage(pgNo); onSelectedRowChange(0); gridTab.clearSelection(); - Clients.resize(listbox); + listbox.invalidate(); } } else if (event.getTarget() == selectAll) @@ -1121,7 +1121,7 @@ public class GridView extends Vlayout implements EventListener, IdSpace, refresh(gridTab); scrollToCurrentRow(); - Clients.resize(listbox); + listbox.invalidate(); } /**