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

Region: content overlap border with round corners

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Won't Fix
    • Affects Version/s: fx2.0, fx2.1
    • Fix Version/s: 8
    • Component/s: javafx
    • Labels:
      None
    • Environment:

      java6
      windows 7
      fx b40
      javafx-sdk2.1.0-beta-b18

      Description

      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();
          }
      }

        Attachments

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

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:
              Imported: