Using Components > The ListBox component > Sizing ListBox components |  |

Sizing ListBox components

You can change the width and height of list box instances using the Free Transform tool during authoring, or at runtime using the `FListBox.setSize` or `FListBox.setWidth` methods. The width of the list box instance is determined by the width of the bounding box. If the text of the list items is too long to fit inside the bounding box, the text is truncated. The height of the list box instance is automatically adjusted to display entire lines of text without increasing the size of the box, which may result in the list box being slightly smaller than the specified height, but never larger.