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

Description for javafx.scene.layout.Border class some change

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • 7u15
    • javafx
    • N/A

      I don't know if this is the right place to report this documentation typos for JavaFX 8.

      The fourth paragraph in the description of the Border class for JavaFX 8.0 reads as follows:

      getInsets() are used to define the inner-most edge of all of the borders. It also is always strictly non-negative. The Region uses the insets of the Background and Border and the Region's padding to determine the Region insets, which define the content area for any children of the Region. The outsets of a Border together with the outsets of a Background and the width and height of the Region define the geometric bounds of the Region (which in turn contribute to the layoutBounds, boundsInLocal, and boundsInParent).

      I think, the last senetence should refer to the "insets" of the border and backgroud, not the "outsets". Outsets are drawn outside teh layout bounds of a Region, and hence, they do not contribute to the layout bounds and any other bounds.

            rbair Richard Bair (Inactive)
            ksharanjfx Kishori Sharan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: