Community
Participate
Working Groups
It always gets the preferred size assuming that scrollbars are present. As a result, it's determination of whether scrollbars are needed or not can be incorrect. Instead it should assume that the scroll bar visibility will not change for the current control, and later re-calculate the preferred size, if needed.
The solver doesn't have the current visibility info. It could be passed as additional params. Another option is to be pessimistic and assume scrollbars are required, but if its close also check if they aren't needed.