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

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0.3
    • Component/s: wtk
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: