Change-Id: I67b3e21640760ee6581b656450e0a5517788580d
box-shadow: inset 0 1px 2px rgba(0,0,0,.2);
border-radius: .5em;
background: rgba(0,0,0,.02);
+}
+
+.displaynone {
+ height: 0;
+ width: 0;
+ display: none;
+}
}
\ No newline at end of file
// This is only to be screenshot-compatible with Vaadin 6, where
// invisible components cause spacing
if (visible) {
- log.setHeight(null);
- log.setWidth(null);
+ log.removeStyleName("displaynone");
log.setCaption((String) log.getData());
} else {
- log.setHeight("0px");
- log.setWidth("0px");
+ log.addStyleName("displaynone");
log.setCaption(null);
}
}