-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ToolBarFlowPane does not wrap anymore in v11.1.4 #163
Comments
Bug reported by Benjamin Peters (@dedeibel) see #163 N.B. in combination with StackPane (ie not managed), the FlowPane does not automatically wrap the children. Forced the behaviour by explicitly setting the width, height and preferred wrapping widht of the FlowPane. Shape does not scale consistently (some Schmidt-trigger like behaviour ... intrinsic to JavaFX layout manager???) At least it wraps now ... so we leave it at that.
Bug reported by Benjamin Peters (@dedeibel) see #163 N.B. in combination with StackPane (ie not managed), the FlowPane does not automatically wrap the children. Forced the behaviour by explicitly setting the width, height and preferred wrapping widht of the FlowPane. Shape does not scale consistently (some Schmidt-trigger like behaviour ... intrinsic to JavaFX layout manager???) At least it wraps now ... so we leave it at that.
@dedeibel It seems to be a JavaFX layout bug of FlowPane in a combination of being embedded in a StackPane. Removing the Added a workaround of forcing specific width, height and preferred wrapping width. Fix is now in the PR #164 and will be merged as soon as it is cross-checked. |
Bug reported by Benjamin Peters (@dedeibel) see #163 N.B. in combination with StackPane (ie not managed), the FlowPane does not automatically wrap the children. Forced the behaviour by explicitly setting the width, height and preferred wrapping widht of the FlowPane. Shape does not scale consistently (some Schmidt-trigger like behaviour ... intrinsic to JavaFX layout manager???) At least it wraps now ... so we leave it at that.
@dedeibel is your problem solved with this patch? |
@RalphSteinhagen unfortunately there seems to be a problem at some point of the wrapping – some elements are wrapped before the second line is established. Not sure how critical this is but it also seems new to me. |
Hi @dedeibel, as mentioned above this seems to be a JavaFX feature: FlowPane inside StackPane (via JavaFX/ControlsFX Skin) that does not allow automatically managing the size of its children. The commit a94e115 is merely workaround for one of the symptoms but leaves the known -- albeit less likely -- side-effect you also mentioned. Unfortunately, I do not see any easy option of fixing this from an FX-user perspective w/o substantially rewriting StackPane and/or the JavaFX Skinning feature infrastructure. |
It seems like ToolBarFlowPane does not wrap plugin icons anymore if the space becomes to small. At some point the height increases but the icons remain in the first row.
It works if I remove the changed line 82 form
adjustToolBarWidth
inToolBarFlowPane.java
.this.setWidth(length);
The text was updated successfully, but these errors were encountered: