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

CSS: If set padding on ColorPicker, padding increases after mouse move.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8
    • Fix Version/s: 8
    • Component/s: javafx
    • Labels:

      Description

      If set padding on ColorPicker, padding increases after mouse move.

      Code to reproduce :

       @Override
          public void start(Stage primaryStage) {
              final Button btn = new Button();
              btn.setText("Set padding");
              final ColorPicker c = new ColorPicker();
              btn.setOnAction(new EventHandler<ActionEvent>() {
                  @Override
                  public void handle(ActionEvent event) {
                     c.setStyle("-fx-padding:40;");
                  }
              });
              VBox root = new VBox(10);
              root.getChildren().addAll(btn, c);
              Scene scene = new Scene(root, 300, 250);
              
              primaryStage.setTitle("Hello World!");
              primaryStage.setScene(scene);
              primaryStage.show();
          }

        Attachments

        1. step1.png
          step1.png
          5 kB
        2. step2.png
          step2.png
          6 kB
        3. step3.png
          step3.png
          6 kB

          Issue Links

            Activity

              People

              • Assignee:
                dgrieve David Grieve
                Reporter:
                slugovoy Sergey Lugovoy (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved:
                  Imported: