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

Region: content overlap border with round corners

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P3 P3
    • 8
    • fx2.0, fx2.1
    • javafx
    • None
    • java6
      windows 7
      fx b40
      javafx-sdk2.1.0-beta-b18

      To reproduce run following code


      import javafx.application.Application;
      import javafx.scene.Parent;
      import javafx.scene.Scene;
      import javafx.scene.control.ScrollBar;
      import javafx.scene.control.TitledPane;
      import javafx.scene.control.ToggleButton;
      import javafx.scene.layout.HBox;
      import javafx.scene.paint.Color;
      import javafx.scene.shape.Rectangle;
      import javafx.scene.text.Text;
      import javafx.stage.Stage;
      import javafx.stage.StageStyle;

      public class ButtonTest extends Application {

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

          private Parent getContent() {
              HBox list = new HBox(10);
              ScrollBar but=new ScrollBar();
              but.setStyle("-fx-border-color:red;-fx-border-radius:10;");
              but.setFocusTraversable(false);
              list.getChildren().addAll(but);
              return list;
          }

          public void start(Stage stage) {
              stage.setX(100);
              stage.setY(100);
              stage.setWidth(200);
              stage.setHeight(200);
              Scene scene = new Scene(getContent(),400,400);
              stage.setScene(scene);
              stage.show();
          }
      }

        1. Bug.java
          1 kB
        2. screenshot-1.jpg
          screenshot-1.jpg
          24 kB
        3. screenshot-2.jpg
          screenshot-2.jpg
          5 kB

            rbair Richard Bair (Inactive)
            anazarov Andrey Nazarov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: