AdjustDroppedListWidth([MaxWidth: Integer = -1;][MinWidth: Integer = -1]);
MaxWidth is the maximum acceptable width of the drop-down list.
MinWidth is the minimum acceptable width of the drop-down list.
The AdjustDroppedListWidth method adjusts the width of the drop-down list of the component taking into account the MinWidth and MaxWidth constraints and data displayed in the component.
The width is adjusted taking into account the availability of expander, flag, icon and state icon, text of elements. If the columns are displayed in the component, the width of all columns is taken into account. Calling the method changes value of the DroppedListWidth property.
NOTE. The actual width of the drop-down menu should be set taking into account the constraints set for the value of the DroppedListWidth property.
See also: