On Tue, 7 Mar 2023 13:33:42 GMT, Kevin Rushforth <k...@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