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

Border radius with different sizes of each border get broken

XMLWordPrintable

      A DESCRIPTION OF THE REQUEST :
      When I use border radius for GridPane and each top, left, bottom, right border has a different size. The radius display broken, the joint point between two borders is keep same sizes as the borders.


      JUSTIFICATION :
      Using border radius and has the border sizes different is often and helpful for developer. I had to use an image for background when this feature broken.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      It should automatically resize along the radius joint point and has the same size at the joint point.
      ACTUAL -
      The radius display broken, the joint point between two borders is keep same sizes as the borders

      ---------- BEGIN SOURCE ----------
      main.css
      .root {
          -fx-border-radius: 20px;
          -fx-border-color: black;
          -fx-border-width: 40px 20px;
          -fx-border-style: solid;
      }

      main.fxml
      <?xml version="1.0" encoding="UTF-8"?>
      <?import javafx.scene.layout.*?>
      <GridPane
                  xmlns="http://javafx.com/javafx/8.0.112" xmlns:fx="http://javafx.com/fxml/1"
                  fx:controller="Controller">

      </GridPane>
      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      I use an with expected display for the background

            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: