Put titleLabel in a titleLabelWrapper

it´s important that the background image grows with the titleLabel text.
To make that possible, the titleLabel needs a wrapper
This commit is contained in:
Marcus Kammer committed 2012-05-24 13:44:25 +02:00
1 parent 8b66c7432a
commit ab32b2d307
1 file changed
+5 -1
@@ -22,9 +22,13 @@ public class LogoAndTitlePanel extends FlowPanel {
sailingAnalyticsLabel.addStyleName("sailingAnalyticsLabel boldLabel");
this.add(labelPanel);
FlowPanel titleLabelWrapper = new FlowPanel();
titleLabelWrapper.addStyleName("titleLabelWrapper");
titleLabel = new Label(title);
titleLabel.addStyleName("titleLabel");
this.add(titleLabel);
titleLabelWrapper.add(titleLabel);
this.add(titleLabelWrapper);
}
}