Issue in StretchableLayoutManager with fix

Looks like this never quite worked when the area you are filling was offset. The last item to be placed wasn’t getting all the remaining space, leaving some unused.

To see the bug in action set up some components with a deliberate gap at the top i.e. StretchableLayoutManager::layOutComponents with y>0
and with the overal height greater than those implied by the initial values given to StretchableLayoutManager::setItemLayout()

HTH,
Dave

2 Likes

:star:

Could you please provide some code that shows the problem?

This was an old bug that was never fixed despite Jules claiming it was.

1 Like