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:
parent
59758e8a7e
commit
a4bfdb27e7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue