IDEMPIERE-4391 Product Info - columns are not hidden, when remove wh/pl (#200)

render header again if number of columns change
This commit is contained in:
hengsin 2020-08-03 23:12:07 +08:00 committed by GitHub
parent 59758e8a7e
commit a4bfdb27e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 1 deletions

View File

@ -168,7 +168,22 @@ public class WListbox extends Listbox implements IMiniTable, TableValueChangeLis
}
else if (head.getChildren().size() > 0)
{
return;
if (this.getItemRenderer() instanceof WListItemRenderer)
{
WListItemRenderer renderer = (WListItemRenderer) this.getItemRenderer();
if (renderer.getTableColumns().size() != head.getChildren().size())
{
head.getChildren().clear();
}
else
{
return;
}
}
else
{
return;
}
}
// render list head