Uploaded image for project: 'Pivot'
  1. Pivot
  2. PIVOT-721

ButtonDataRenderer#setFillIcon has no effect, because its BoxPane doesn't have fill style

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.0
    • 2.0.3
    • wtk
    • None

    Description

      ButtonDataRenderer has a setFillIcon method, which supposedly should allow the button's image to be scaled to fit the button. However, it has no effect, because the renderer is a BoxPane with the default fill=false.

      Fix: In the ButtonDataRenderer constructor, add

      getStyles().put("fill", true);

      Attachments

        1. pivot721_imageview_only_for_debug_DO_NOT_COMMIT.patch
          2 kB
          Sandro Martini
        2. 721.diff
          2 kB
          Roger Lee Whitcomb

        Issue Links

          Activity

            People

              rwhitcomb Roger Lee Whitcomb
              bvanmelle Bill van Melle
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: