8264591: HBox/VBox child widths pixel-snap to wrong value #445
The children of HBox/VBox don't always pixel-snap to the same value as the container itself when a render scale other than 1 is used. This can lead to a visual glitch where the content bounds don't line up with the container bounds. In this case, the container will extend beyond its content, or vice versa.
The following program shows the problem for HBox:
Here's a before-and-after comparison of the program above after applying the fix. Note that 'before', the backgrounds of the container (red) and its content (black) don't align perfectly. The render scale is 175% in this example.
I've filed a bug report and will change the title of the GitHub issue as soon as it's posted.
The text was updated successfully, but these errors were encountered:
I had a look at the PR. But it took quite a while to fully understand the changes (also the current implementation