the current width, what resize last set it to
Protectedmeasurethe text's own height, which sizes the box; its own method so a test can supply it
Sets the width in place: the text re-wraps at the new width and the box resizes and re-measures, so a layout change does not rebuild the widget.
call each frame for touch coasting
A wrapped
Labelin aScrollBoxthat sizes itself: the box is as tall as the text up tomaxHeight, and scrolls (wheel, touch, keys, scrollbar) beyond it, so a long hint, credit list or result message never spills over what is around it.setTextre-measures andresize(width)re-wraps in place; the caller no longer measures the label and feedssetContentHeightby hand.Example