[ https://issues.apache.org/jira/browse/PIVOT-910?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13771776#comment-13771776 ]
Alessandro Pira commented on PIVOT-910: --------------------------------------- Yes, I did that because in our product we always want tooltips to be multiline, and that was the fastest way to do it. Anyway, I think you're right... it should definitely be configurable. Still the code for LabelSkin's getPreferredSize/With contained in the patch could probably be applied as is. > Multiline Label (and Tooltip) > ----------------------------- > > Key: PIVOT-910 > URL: https://issues.apache.org/jira/browse/PIVOT-910 > Project: Pivot > Issue Type: Brainstorming > Reporter: Alessandro Pira > Assignee: Sandro Martini > Priority: Trivial > Fix For: 2.0.4, 2.1 > > Attachments: patch-multiline-tooltip-2.0.2.diff, > patch-multiline-tooltip-2.0.3.diff > > > In our project we needed multiline tooltips (splittable by '\n' characters), > so I patched our pivot version (which is 2.0.2) to make the Label multiline. > I know we could have used TextArea instead, but this way is easier for us for > many reasons. > I am just sending you my patch in case you'll find this useful somehow (maybe > a property can be added on the LabelSkin -like wrapText- for this). -- 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