JDK-8123074 : TextArea initial appearance is corrupted
  • Type: Bug
  • Component: javafx
  • Sub-Component: controls
  • Affected Version: 8
  • Priority: P3
  • Status: Resolved
  • Resolution: Cannot Reproduce
  • Submitted: 2013-06-18
  • Updated: 2015-06-17
  • Resolved: 2013-08-29
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
Blocks :  
Description
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.TextArea;
import javafx.scene.layout.HBox;
import javafx.scene.layout.Pane;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;

public class TextAreaSample extends Application {

    public static void main(String[] args) {
        launch(args);
    }

    @Override
    public void start(Stage stage) throws Exception {
        Pane pane = new Pane();
        pane.setPrefSize(600, 600);
        pane.getChildren().add(new Button("Button"));

        HBox root = new HBox(3);
        root.getChildren().add(pane);
        root.getChildren().add(new VBox(new Button("Button"), new TextArea()));

        stage.setScene(new Scene(root, 800, 600));
        stage.show();
    }
}
Comments
I can not reproduce this issue any longer - most probably it was fixed by a graphics / scenegraph change.
29-08-2013

RULE ControlsAutomatedTestSuite/javafx/scene/control/test/textinput/TextAreaTest/keyboard1PromptTest Exception org.jemmy.TimeoutExpiredException: State 'Control having expected image' has not been reached in ... milliseconds RULE ControlsAutomatedTestSuite/javafx/scene/control/test/textinput/TextAreaTest/keyboard2PromptTest Exception org.jemmy.TimeoutExpiredException: State 'Control having expected image' has not been reached in ... milliseconds RULE ControlsAutomatedTestSuite/javafx/scene/control/test/textinput/TextAreaTest/keyboard3PromptTest Exception org.jemmy.TimeoutExpiredException: State 'Control having expected image' has not been reached in ... milliseconds RULE ControlsAutomatedTestSuite/javafx/scene/control/test/textinput/TextAreaTest/longStringPromptTest Exception org.jemmy.TimeoutExpiredException: State 'Control having expected image' has not been reached in ... milliseconds RULE ControlsAutomatedTestSuite/javafx/scene/control/test/textinput/TextAreaTest/resizePromptTest Exception org.jemmy.TimeoutExpiredException: State 'Control having expected image' has not been reached in ... milliseconds RULE ControlsAutomatedTestSuite/javafx/scene/control/test/textinput/TextAreaTest/simpleClickPromptTest Exception org.jemmy.TimeoutExpiredException: State 'Control having expected image' has not been reached in ... milliseconds RULE ControlsAutomatedTestSuite/javafx/scene/control/test/textinput/TextAreaTest/simplePromptTest Exception org.jemmy.TimeoutExpiredException: State 'Control having expected image' has not been reached in ... milliseconds RULE ControlsAutomatedTestSuite/javafx/scene/control/test/textinput/TextAreaTest/textInsidePromptTest Exception org.jemmy.TimeoutExpiredException: State 'Control having expected image' has not been reached in ... milliseconds
16-07-2013

Affected tests: tests/docsamples/UIControlSamples_36
15-07-2013

Assigning to Mick to consider whether these changes to ScrollPaneSkin are appropriate. @Mick: I have not applied the patch that Martin has provided, so please don't mark this issue resolved without ensuring the text area renders properly!
02-07-2013

Patch attached. Returning back to controls team for review. The regression was caused by a strange cyclic dependency in scroll content pref size computation in TextAreaSkin. The pref size depended on scrollpane's viewport bounds, but the scrollpane's viewport bounds are computed from the content pref size. I've created the a new skin for scrollpane in textarea that stretches the content to the size of the scrollpane if it's smaller. I guess it might be also a good candidate for a new API on scrollpane.
02-07-2013

Caused by RT-30363 - assigning to Martin for review.
24-06-2013