padding-top: 0;
padding-left: 0;
}
+
+.v-horizontallayout-slot, .v-verticallayout-slot {
+ position: absolute;
+ overflow: hidden;
+}
VLayoutSlot slot = layout.getSlotForChild(widget);
if (widget.getParent() != layout) {
- slot = new VPaintableLayoutSlot(child);
+ slot = new VPaintableLayoutSlot(getWidgetForPaintable()
+ .getStylePrimaryName(), child);
layout.addSlot(slot);
}
private double expandRatio;
- public VLayoutSlot(Widget widget) {
+ public VLayoutSlot(String baseClassName, Widget widget) {
this.widget = widget;
- wrapper.getStyle().setPosition(Position.ABSOLUTE);
+ wrapper.setClassName(baseClassName + "-slot");
}
public VCaption getCaption() {
final VPaintableWidget paintable;
- public VPaintableLayoutSlot(VPaintableWidget paintable) {
- super(paintable.getWidgetForPaintable());
+ public VPaintableLayoutSlot(String baseClassName, VPaintableWidget paintable) {
+ super(baseClassName, paintable.getWidgetForPaintable());
this.paintable = paintable;
}