Version: 8.0.0.beta2
A Tooltip for a tab displayed in a TabSheet does not line-break and is displayed in a console font.
The possibility to provide ContentMode with setDescription is missing (which fixed for other ToolTips in Vaadin 8)
Other affected components (used so far):
- MenuBar.MenuItem
Sample to reproduce:
[code]
final VerticalLayout layout = new VerticalLayout();
layout.addComponent(new Label("Tabsheet Tooltip Linebreak Test with Vaadin Version: " +
com.vaadin.shared.Version.getFullVersion()));
TabSheet sample = new TabSheet();
sample.setHeight(100.0f, Unit.PERCENTAGE);
sample.addStyleName(ValoTheme.TABSHEET_FRAMED);
sample.addStyleName(ValoTheme.TABSHEET_PADDED_TABBAR);
final String toolTipText = "A23456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789";
String tabToolTipText = "";
for (int i = 1; i < 8; i++) {
tabToolTipText = tabToolTipText + " " + toolTipText;
final VerticalLayout tablayout = new VerticalLayout(new Label(
"Tooltip Content: " + tabToolTipText, ContentMode.HTML));
tablayout.setMargin(true);
Tab tab = sample.addTab(tablayout, "Tab " + i);
tab.setDescription(toolTipText);
}
layout.addComponent(sample);
layout.setMargin(true);
layout.setSpacing(true);
setContent(layout);
[/code]