Community
Participate
Working Groups
In SWT (tested on GTK) tooltip content seems to be wrapped at about 400px. In RWT there is no such wrapping which can cause tooltip to be truncated. Note that SWT preserves line breaks originally contained in tooltip text if any and just add more if any line is too long. Ideally RWT should behave similarly to SWT.
Sebastien, are you talking about ToolTip widget or the tooltip shown by widget.setToolTipText()?
I'm talking about widget.setTooltipText(). -Seb
(In reply to comment #2) > I'm talking about widget.setTooltipText(). This is a platform dependent feature. SWT on Windows does not wrap the text, same with RAP.
I personaly prefer the GTK behavior because it makes long tooltips readable but I understand if you prefer to keep it as it is for RAP.
We've had a similar discussion in a project where we develop a larger RAP-based application: Is it the responsibility of the framework to *add* line breaks, or is it the application developer's responsibility? While I'm not sure about the best possible default algorithm (add additional line break 'after 400px' or 'after 65 characters' or 'when reaching the boundary of the display/browser'...) I believe that it would be good to come up with a sensible default behaviour in RAP. At the moment we are telling the developer that (s)he is responsible for adding line breaks, but we don't give them a good indication where to place a line break. Isn't this something that could be done on the client side?