-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
P3
-
Affects Version/s: jfx25, jfx26, jfx27
-
Component/s: javafx
ADDITIONAL SYSTEM INFORMATION :
-
A DESCRIPTION OF THE PROBLEM :
JDK-8350149 introduced some regressions in other panes. Some panes have been checked and fixed since, but flowpane still has issues. (possibly other panes too, but I will leave it with flowpane for this report)
REGRESSION : Last worked in version 24.0.2
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
See source code example.
---------- BEGIN SOURCE ----------
package bug.java.flowpanebug;
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.layout.FlowPane;
import javafx.scene.text.Text;
import javafx.scene.text.TextFlow;
import javafx.stage.Stage;
public class BugApplication extends Application {
@Override
public void start(Stage stage) {
FlowPane flowPane = new FlowPane();
TextFlow tf1 = createTextFlow();
TextFlow tf2 = createTextFlow();
TextFlow tf3 = createTextFlow();
flowPane.getChildren().addAll(tf1, tf2, tf3);
Scene scene = new Scene(flowPane, 320, 240);;
stage.setScene(scene);
stage.show();
}
private static TextFlow createTextFlow() {
TextFlow textFlow = new TextFlow(new Text("this is a long text that will be wrapped"), new Text("this is a long text that will be wrapped"), new Text("this is a long text that will be wrapped"));
textFlow.setStyle("-fx-background-color: red; -fx-max-width: 10em; -fx-wrap-text: true");
return textFlow;
}
}
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
Stay on 24.0.2
FREQUENCY :
ALWAYS
-
A DESCRIPTION OF THE PROBLEM :
REGRESSION : Last worked in version 24.0.2
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
See source code example.
---------- BEGIN SOURCE ----------
package bug.java.flowpanebug;
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.layout.FlowPane;
import javafx.scene.text.Text;
import javafx.scene.text.TextFlow;
import javafx.stage.Stage;
public class BugApplication extends Application {
@Override
public void start(Stage stage) {
FlowPane flowPane = new FlowPane();
TextFlow tf1 = createTextFlow();
TextFlow tf2 = createTextFlow();
TextFlow tf3 = createTextFlow();
flowPane.getChildren().addAll(tf1, tf2, tf3);
Scene scene = new Scene(flowPane, 320, 240);;
stage.setScene(scene);
stage.show();
}
private static TextFlow createTextFlow() {
TextFlow textFlow = new TextFlow(new Text("this is a long text that will be wrapped"), new Text("this is a long text that will be wrapped"), new Text("this is a long text that will be wrapped"));
textFlow.setStyle("-fx-background-color: red; -fx-max-width: 10em; -fx-wrap-text: true");
return textFlow;
}
}
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
Stay on 24.0.2
FREQUENCY :
ALWAYS
- caused by
-
JDK-8350149 VBox ignores bias of child controls when fillWidth is set to false
-
- Resolved
-