This dynamic treetable loading snippet shows that if you expand only “@dandv”, the table doesn’t adjust its columns. You must expand both nodes for the columns to adjust.
There are multiple bugs here:
- if you expand dandv, then collapse it, then expand mizzao, then expand dandv again, the treetable columns won’t adjust, despite all rows being expanded
- the line
this.adjustColumn();
is useless. If you remove it then expand both nodes, the columns will adjust. This is not becauseadjust: true
being defined for the columns because - If you remove
adjust: true
from the column definition, and put backthis.adjustColumn()
, the columns won’t adjust at all - demo. - The name of this method, “adjustColumn” suggests it adjusts one column. Does it take a parameter? If not, it should be renamed to “adjustColumns” (plural).