[ https://issues.apache.org/jira/browse/PIVOT-721?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13465711#comment-13465711 ]
Roger Whitcomb commented on PIVOT-721: -------------------------------------- Checked for "setFillIcon" in other examples and tutorials and none were found except Pivot721.java. Checked this fix in our applications and everything appears fine. Pivot721 works great. Even the 200x200 case with the renderer with "setFillIcon(true)" works correctly and the image is scaled to fill the button. Bill, can you take the latest 2.0.3 code and check to make sure? > ButtonDataRenderer#setFillIcon has no effect, because its BoxPane doesn't > have fill style > ----------------------------------------------------------------------------------------- > > Key: PIVOT-721 > URL: https://issues.apache.org/jira/browse/PIVOT-721 > Project: Pivot > Issue Type: Bug > Components: wtk > Affects Versions: 2.0 > Reporter: Bill van Melle > Assignee: Roger Whitcomb > Priority: Minor > Fix For: 2.0.3 > > Attachments: 721.diff, > pivot721_imageview_only_for_debug_DO_NOT_COMMIT.patch > > > 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); -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira