Closed SomeSourceCode closed 3 months ago
When using the FlowPane layout with padding set, it wraps elements too early in following scenarios:
FlowPane
The results in unintended wrapping behavior and affects the layout of elements within the FlowPane.
The issue is probably that the x / y value is added to the run length when compared with the wrap length: https://github.com/SomeSourceCode/SomeGuiApi/blob/85cfe6f6bf5c3212781217712936c0a4514f28c7/src/main/java/io/github/somesourcecode/someguiapi/scene/pane/FlowPane.java#L202
x
y
Description
When using the
FlowPane
layout with padding set, it wraps elements too early in following scenarios:FlowPane
's is set.FlowPane
's is set.The results in unintended wrapping behavior and affects the layout of elements within the
FlowPane
.Potential Fix
The issue is probably that the
x
/y
value is added to the run length when compared with the wrap length: https://github.com/SomeSourceCode/SomeGuiApi/blob/85cfe6f6bf5c3212781217712936c0a4514f28c7/src/main/java/io/github/somesourcecode/someguiapi/scene/pane/FlowPane.java#L202