Region: styled thick border is rendered wrong

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P2
    • 8
    • Affects Version/s: fx2.0
    • Component/s: javafx
    • Environment:

      b30
      windows 7

      To reproduce run following code



      import javafx.application.Application;
      import javafx.scene.Parent;
      import javafx.scene.Scene;
      import javafx.scene.control.Button;
      import javafx.scene.layout.VBox;
      import javafx.stage.Stage;

      public class TitledPaned extends Application {

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

          private Parent getContent() {
              VBox list = new VBox(10);
              Button but=new Button("Button");
              but.setStyle("-fx-border-color: green;"
                      + "-fx-border-style: dashed;"
                      + "-fx-border-width: 3;");
              but.setFocusTraversable(false);
              list.getChildren().add(but);
            
              return list;
          }
          
          public void start(Stage stage) {
              stage.setX(100);
              stage.setY(100);
              stage.setWidth(300);
              stage.setHeight(300);
              Scene scene = new Scene(getContent());
              stage.setScene(scene);
              stage.setVisible(true);
          }
      }

            Assignee:
            David Grieve
            Reporter:
            Andrey Nazarov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: