Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8092693

Horizontal resize of TextArea makes the scrollbar appear/flicker.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 8u40
    • javafx
    • Windows 7; 8u40

      When a TextArea is resized horizontally by hand, the horizontal scrollbar appears/flickers, even though there is nothing in the TextArea.

      package application;

      import javafx.application.Application;
      import javafx.scene.Scene;
      import javafx.scene.control.TextArea;
      import javafx.scene.layout.BorderPane;
      import javafx.stage.Stage;

      public class Main extends Application {
      public static void main(String[] args) {
      launch(args);
      }

      @Override
      public void start(Stage primaryStage) {
      TextArea textArea = new TextArea();

      BorderPane root = new BorderPane();
      root.setCenter(textArea);
      root.setMinSize(120, 240);

      primaryStage.setScene(new Scene(root));
      primaryStage.setTitle("JavaFX TextArea Test");
      primaryStage.show();
      }
      }


        1. Run test application.
        2. Grab the right border of the window and make it bigger horizontally, everything's okay.
        3. Now make it smaller again, the horizontal scrollbar flickers.

      Used theme is Caspian, if that is of importance.

            leifs Leif Samuelsson (Inactive)
            rzenzjfx Robert Zenz (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: