javafx-8,textwrapping,textflow
From the TextFlow documentation: The wrapping width of the layout is determined by the region's current width. It can be specified by the application by setting the textflow's preferred width. If no wrapping is desired, the application can either set the preferred with to Double.MAX_VALUE or Region.USE_COMPUTED_SIZE. So, to stop...
Modify your 3rd approach to use layout() instead of requestLayout(). requestLayout() marks the layout as dirty and causes a re-layout on the next pulse. In the code requestLayout(); doSomethingThatDependsOnLayout(); doSomethingThatDependsOnLayout() will see the old layout. layout() performs the layout immediately (synchronously), but only if the layout is dirty. (In your...