--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head profile="http://selenium-ide.openqa.org/profiles/test-case">
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+<link rel="selenium.base" href="http://artur-laptop.office.itmill.com:8888/" />
+<title>New Test</title>
+</head>
+<body>
+<table cellpadding="1" cellspacing="1" border="1">
+<thead>
+<tr><td rowspan="1" colspan="3">New Test</td></tr>
+</thead><tbody>
+<tr>
+ <td>open</td>
+ <td>/run/TextFieldInLayoutInTable</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForVaadin</td>
+ <td></td>
+ <td></td>
+</tr>
+<tr>
+ <td>screenCapture</td>
+ <td></td>
+ <td></td>
+</tr>
+
+</tbody></table>
+</body>
+</html>
--- /dev/null
+package com.vaadin.tests.components.textfield;\r
+import com.vaadin.Application;\r
+import com.vaadin.ui.Component;\r
+import com.vaadin.ui.Panel;\r
+import com.vaadin.ui.Table;\r
+import com.vaadin.ui.TextField;\r
+import com.vaadin.ui.VerticalLayout;\r
+import com.vaadin.ui.Window;\r
+\r
+@SuppressWarnings("serial")\r
+public class TextFieldInLayoutInTable extends Application {\r
+\r
+ @Override\r
+ public void init() {\r
+\r
+ final Window mainWindow = new Window(this.getClass().getName());\r
+ setMainWindow(mainWindow);\r
+\r
+ final Table table = new Table();\r
+ table.addContainerProperty("column1", Component.class, null);\r
+ final Panel panel = new Panel("Panel");\r
+ ((VerticalLayout) panel.getContent()).setMargin(false);\r
+ VerticalLayout vl = new VerticalLayout();\r
+ final TextField textField = new TextField();\r
+ vl.addComponent(textField);\r
+\r
+ table.addItem(new Object[] { vl }, 1);\r
+\r
+ table.setSizeFull();\r
+ mainWindow.addComponent(table);\r
+ }\r
+\r
+}\r