@@ -0,0 +1,1243 @@
+package com.itmill.toolkit.tests.components.absolutelayout;%0A%0Aimport com.itmill.toolkit.tests.components.TestBase;%0Aimport com.itmill.toolkit.ui.AbsoluteLayout;%0Aimport com.itmill.toolkit.ui.Label;%0A%0Apublic class AbsoluteLayoutClipping extends TestBase %7B%0A%0A    @Override%0A    protected void setup() %7B%0A        setTheme(%22tests-tickets%22);%0A        AbsoluteLayout abs = new AbsoluteLayout();%0A        abs.setStyleName(%22borders%22);%0A        abs.setWidth(%22100px%22);%0A        abs.setHeight(%22100px%22);%0A%0A        Label l = new Label(%22This should be clipped at 100px%22);%0A        l.setSizeUndefined();%0A        abs.addComponent(l, %22top:50px;left:50px%22);%0A%0A        Label l2 = new Label(%22This should not be visible%22);%0A        l2.setSizeUndefined();%0A        abs.addComponent(l2, %22top:80px;left:150px%22);%0A%0A        Label l3 = new Label(%22This should be clipped vertically at 100px%22);%0A        l3.setWidth(%2250px%22);%0A        abs.addComponent(l3, %22top:20px;left:0px%22);%0A%0A        addComponent(abs);%0A    %7D%0A%0A    @Override%0A    protected String getDescription() %7B%0A        return %22An AbsoluteLayout with fixed size should clip at its borders. Nothing outside the black square should be visible.%22;%0A    %7D%0A%0A    @Override%0A    protected Integer getTicketNumber() %7B%0A        return 2913;%0A    %7D%0A%0A%7D%0A

Test case for #2913