+/* THIS IS HERE ONLY BECAUSE WE WANT TO DEFINE IT FIRST, TO MAKE IT EASY TO OVERRIDE */
+.v-connector {
+ -webkit-box-sizing: border-box;
+ -moz-box-sizing: border-box;
+ box-sizing: border-box;
+ text-align: left;
+ display: inline-block;
+ white-space: normal;
+}
+
+/* Actual AbsoluteLayout styles begin here */
+
.v-absolutelayout-wrapper {
position: absolute;
overflow: hidden;
.v-align-middle > .v-connector,
.v-align-bottom > .v-connector {
display: inline-block;
- /* TODO this is a bit tricky, since it will override component defaults in some cases */
- white-space: normal;
}
.v-align-middle > .v-connector {
.v-caption-on-right > .v-connector {
display: inline-block;
vertical-align: middle;
- /* TODO this is a bit tricky, since it will override component defaults in some cases */
- white-space: normal;
}
.v-has-caption.v-has-width > .v-connector {
if (!slot.hasCaption()) {
childCaptionElementHeight.remove(child.getWidget().getElement());
}
+
+ updateLayoutHeight();
}
@Override
childElementHeight.put(el, getLayoutManager()
.getOuterHeight(el));
- // Element captionElement = el.getParentElement()
- // .getFirstChildElement().cast();
- // if (captionElement.getClassName().contains("v-caption")) {
- // childCaptionElementHeight.put(el, getLayoutManager()
- // .getOuterHeight(captionElement));
- // }
+ Element captionElement = el.getParentElement()
+ .getFirstChildElement().cast();
+ if (captionElement.getClassName().contains("v-caption")) {
+ childCaptionElementHeight.put(el, getLayoutManager()
+ .getOuterHeight(captionElement));
+ }
}
+ // If no height has been set, use the natural height for the
+ // component (this is mostly just a precaution so that something
+ // renders correctly)
String h = getWidget().getElement().getStyle().getHeight();
if (h == null || h.equals("")) {
int height = getLayoutManager().getOuterHeight(