I have 2 combo boxes, and on init of the dialog the first has the active server connections loaded into it. The second should then load the channel and message windows open on that server into it; and on selection of a different network reloads the window list.

Only problem is it is not resizing the drop of the dropdown. So either I have values cut off the bottom or else I have a large empty space. Any suggestions anyone? The code which is loading the window list is:
Code:
    var %i = 1 | var %i.max = $calc($chan(0) + $query(0))
    scid $did($dname,116).sel
    did -r $dname 117
    while ( %i <= %i.max ) {
      did -i $dname 117 %i $iif($chan(%i),$chan(%i),$query($calc( %i - $chan(0) )))
      inc %i
    }