Script dialog list view control - resizing issue

Having an issue with list view (details mode) resizing.
Sometimes the list view column resizes with the dialog and sometimes it does not, please observe the video

Maybe it is a programmable feature and my code is slighty wrong
test 2.opusscriptinstall (2.7 KB)
or it might possibly be an underlying glitch.

The list view controls resize image is set to W,H.
Not sure what WS and HS do, can you please tell me.
All help appreciated.

nvm. Found the issue
dlg.Control('listview1').columns.GetColumnAt(0).resize = true;
was in the wrong place.

Please elucidate about these settings.

Not an expert here, but I think it's your code :slight_smile:
Try adding these lines inside your Make_List method, rather than outside:

dlg.Control('listview1').redraw = false;
dlg.Control('listview1').columns.GetColumnAt(0).resize = true;
dlg.Control('listview1').redraw = true;

Note that it will autosize the columns in the listview, not the listview or the dialog itself, that's a different story.

many thanks chris :slight_smile: