Hi,
I was fighting with an issue that my picklist was not resizing to show all the content. It was never larger than the width of the formitem. After a lot of debugging I found that it is probably caused by these lines in ListGrid.getStretchResizeWidths
The error is that the index should be taken from the hasDynamicDefaults, so within the if not i should be used as the index but the value of: hasDynamicDefaults[i]
So I think the correct line should be:
gr. Martin
I was fighting with an issue that my picklist was not resizing to show all the content. It was never larger than the width of the formitem. After a lot of debugging I found that it is probably caused by these lines in ListGrid.getStretchResizeWidths
Code:
for (var i = 0; i < hasDynamicDefaults.length; i++) { if (calculatedWidths[i] < autoFitWidths[i]) { fieldOverflowed = true; widths[i] = autoFitWidths[i]; } }
So I think the correct line should be:
Code:
for (var i = 0; i < hasDynamicDefaults.length; i++) { var j = hasDynamicDefaults[i]; if (calculatedWidths[j] < autoFitWidths[j]) { fieldOverflowed = true; widths[j] = autoFitWidths[j]; } }
Comment