JDK-8117847 : Text is rendered ouside of control in vbox
  • Type: Bug
  • Component: javafx
  • Sub-Component: controls
  • Affected Version: 8
  • Priority: P2
  • Status: Resolved
  • Resolution: Duplicate
  • Submitted: 2013-07-15
  • Updated: 2015-06-17
  • Resolved: 2013-09-26
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8
8Resolved
Related Reports
Duplicate :  
Description
When several controls are put in the vbox the text is not clipped

import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.control.Label;
import javafx.scene.control.Labeled;
import javafx.scene.control.ToggleButton;
import javafx.scene.control.ToggleButtonBuilder;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;

public class Bug extends Application {

    public static final String WRAPPED =
            "wrapped wrapped wrapped wrapped wrapped wrapped\n" +
            "wrapped wrapped wrapped wrapped wrapped wrapped\n" +
            "wrapped wrapped wrapped wrapped wrapped wrapped\n" +
            "wrapped wrapped wrapped wrapped wrapped wrapped\n";
    public Labeled createControl() {
        ToggleButton button = ToggleButtonBuilder.create().selected(false).text(WRAPPED)
                .focusTraversable(false).build();

        return button;
    }

    public static void main(String[] args) {
        launch(Bug.class, args);
    }

    @Override
    public void start(Stage stage) throws Exception {
        VBox root = new VBox();
        for (int i = 0; i < 6; i++) {
            Labeled contr = createControl();
            root.getChildren().add(new Label("Label " + i));
            root.getChildren().add(contr);
        }

        Scene scene = new Scene(root, 200, 400);
        stage.setScene(scene);
        stage.show();
    }
}
Comments
Duplicate of RT-32966
26-09-2013

RULE ControlsAutomatedTestSuite/javafx/scene/control/test/labeled/HyperliksTest/setTextAlignmentTest Exception org.jemmy.TimeoutExpiredException: State 'Control having expected image' has not been reached in ... milliseconds RULE ControlsAutomatedTestSuite/javafx/scene/control/test/labeled/HyperliksTest/setTextOverrunMultiLineTest Exception org.jemmy.TimeoutExpiredException: State 'Control having expected image' has not been reached in ... milliseconds
30-07-2013

RULE ControlsAutomatedTestSuite/javafx/scene/control/test/labeled/ButtonsTest/setTextOverrunMultiLineTest Exception org.jemmy.TimeoutExpiredException: State 'Control having expected image' has not been reached in ... milliseconds RULE ControlsAutomatedTestSuite/javafx/scene/control/test/labeled/LabelsTest/setTextAlignmentTest Exception org.jemmy.TimeoutExpiredException: State 'Control having expected image' has not been reached in ... milliseconds RULE ControlsAutomatedTestSuite/javafx/scene/control/test/labeled/LabelsTest/setTextOverrunMultiLineTest Exception org.jemmy.TimeoutExpiredException: State 'Control having expected image' has not been reached in ... milliseconds RULE ControlsAutomatedTestSuite/javafx/scene/control/test/labeled/MenuButtonsTest/setTextAlignmentTest Exception org.jemmy.TimeoutExpiredException: State 'Control having expected image' has not been reached in ... milliseconds RULE ControlsAutomatedTestSuite/javafx/scene/control/test/labeled/SplitMenuButtonsTest/setTextAlignmentTest Exception org.jemmy.TimeoutExpiredException: State 'Control having expected image' has not been reached in ... milliseconds RULE ControlsAutomatedTestSuite/javafx/scene/control/test/labeled/ToggleButtonsTest/setTextOverrunMultiLineTest Exception org.jemmy.TimeoutExpiredException: State 'Control having expected image' has not been reached in ... milliseconds
15-07-2013