RFR: 8090123: Items are no longer visible when collection is changed [v7]
Karthik P K
kpk at openjdk.org
Tue Mar 7 14:09:41 UTC 2023
On Tue, 7 Mar 2023 13:33:42 GMT, Kevin Rushforth <kcr at openjdk.org> wrote:
>> Updated code to use `Math.ceil()`
>
> The `Math.ceil` is in the wrong place. It's the result of the division that will generate the fractional result that needs it:
>
>
> double screenHeight = Screen.getPrimary().getVisualBounds().getHeight();
> scrollChoiceBox((int) Math.ceil(screenHeight / rowHeight));
Updated code to use `Math.ceil` for the result of division. Please check.
-------------
PR: https://git.openjdk.org/jfx/pull/1039
More information about the openjfx-dev
mailing list