.v-csslayout {
overflow: hidden;
}
+/* More specific selector to override 'v-connector' */
+div.v-csslayout {
+ display: block;
+}
.v-csslayout-margin, .v-csslayout-container {
- -moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
+ -moz-box-sizing: border-box;
box-sizing: border-box;
}
.v-has-width > .v-csslayout-margin,
return getMeasuredSize(element, nullSize).getMarginLeft();
}
+ public int getMarginWidth(Element element) {
+ return getMeasuredSize(element, nullSize).getMarginWidth();
+ }
+
+ public int getMarginHeight(Element element) {
+ return getMeasuredSize(element, nullSize).getMarginHeight();
+ }
+
+ /**
+ * Registers the outer height (including margins, borders and paddings) of a
+ * component. This can be used as an optimization by ManagedLayouts; by
+ * informing the LayoutManager about what size a component will have, the
+ * layout propagation can continue directly without first measuring the
+ * potentially resized elements.
+ *
+ * @param component
+ * the component for which the size is reported
+ * @param outerHeight
+ * the new outer height (including margins, borders and paddings)
+ * of the component in pixels
+ */
public void reportOuterHeight(ComponentConnector component, int outerHeight) {
MeasuredSize measuredSize = getMeasuredSize(component);
if (isLayoutRunning()) {