swingx
  1. swingx
  2. SWINGX-1443

VerticalLayout and HorizontalLayout add gap after last component

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.6.2
    • Fix Version/s: 1.6.3
    • Component/s: Accessories
    • Labels:
      None

      Description

      Both HorizontalLayout and VerticalLayout add the gap unconditionally for each component. This is incorrect. The gaps should appear only between managed components.

        Activity

        Hide
        Karl Schaefer added a comment -

        SWINGX-1443: Fix layouts to ensure that the gap is only placed between components. (Was incorrectly placing gaps after last as well.)

        swingx-core/src/main/java/org/jdesktop/swingx/HorizontalLayout.java
        swingx-core/src/main/java/org/jdesktop/swingx/VerticalLayout.java
        swingx-core/src/test/java/org/jdesktop/swingx/HorizontalLayoutTest.java
        swingx-core/src/test/java/org/jdesktop/swingx/VerticalLayoutTest.java

        Committed revision 4006.

        Show
        Karl Schaefer added a comment - SWINGX-1443 : Fix layouts to ensure that the gap is only placed between components. (Was incorrectly placing gaps after last as well.) swingx-core/src/main/java/org/jdesktop/swingx/HorizontalLayout.java swingx-core/src/main/java/org/jdesktop/swingx/VerticalLayout.java swingx-core/src/test/java/org/jdesktop/swingx/HorizontalLayoutTest.java swingx-core/src/test/java/org/jdesktop/swingx/VerticalLayoutTest.java Committed revision 4006.

          People

          • Assignee:
            Karl Schaefer
            Reporter:
            Karl Schaefer
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: