@@ -0,0 +1,1197 @@
+package com.vaadin.tests.components.button;%0D%0A%0D%0Aimport com.vaadin.data.Item;%0D%0Aimport com.vaadin.tests.components.TestBase;%0D%0Aimport com.vaadin.ui.Button;%0D%0Aimport com.vaadin.ui.NativeButton;%0D%0Aimport com.vaadin.ui.Table;%0D%0A%0D%0Apublic class ButtonUndefinedWidth extends TestBase %7B%0D%0A%0D%0A    @Override%0D%0A    protected String getDescription() %7B%0D%0A        return %22Both the button outside the table and inside the table should be only as wide as necessary. There should be empty space in the table to the right of the button.%22;%0D%0A    %7D%0D%0A%0D%0A    @Override%0D%0A    protected Integer getTicketNumber() %7B%0D%0A        return 3257;%0D%0A    %7D%0D%0A%0D%0A    @Override%0D%0A    protected void setup() %7B%0D%0A        Button b = new Button(%22Undefined wide%22);%0D%0A        addComponent(b);%0D%0A        NativeButton b2 = new NativeButton(%22Undefined wide%22);%0D%0A        addComponent(b2);%0D%0A%0D%0A        Table t = new Table();%0D%0A        t.addContainerProperty(%22A%22, Button.class, null);%0D%0A        t.setWidth(%22500px%22);%0D%0A%0D%0A        Item i = t.addItem(%221%22);%0D%0A        i.getItemProperty(%22A%22).setValue(new Button(%22Undef wide%22));%0D%0A        Item i2 = t.addItem(%222%22);%0D%0A        i2.getItemProperty(%22A%22).setValue(new NativeButton(%22Undef wide%22));%0D%0A%0D%0A        addComponent(t);%0D%0A    %7D%0D%0A%0D%0A%7D%0D%0A

Test case for #3257