]> source.dussan.org Git - vaadin-framework.git/commitdiff
Table editmode: textfield height now the same as plain string height -> switching...
authorJouni Koivuviita <jouni.koivuviita@itmill.com>
Thu, 8 May 2008 08:26:48 +0000 (08:26 +0000)
committerJouni Koivuviita <jouni.koivuviita@itmill.com>
Thu, 8 May 2008 08:26:48 +0000 (08:26 +0000)
Table column spacing increased for legibility.

svn changeset:4385/svn branch:trunk

WebContent/ITMILL/themes/default/table/table.css
src/com/itmill/toolkit/terminal/gwt/client/ui/IScrollTable.java

index 1a56c6c99249e73c3b915c0eb01f7fd932f9562e..cc94d4ed6bf2e7c56bdf3645f66bd248aa07294d 100644 (file)
 }
 .i-table-row td,
 .i-table-row-odd td {
-       padding: 3px 0;
+       padding: 0;
 }
 .i-table-cell-content {
        white-space: nowrap;
        overflow: hidden;
-       padding-left: 3px;
+       padding: 3px 5px 3px 3px;
+       height: 18px;
+}
+
+/* Fix textfield size to correspond label size in */
+.i-table-cell-content .i-textfield {
+       height: auto;
+       margin: -2px 0 -3px -3px;
+       width: 97%; /* approximate */
 }
 
 
index 180a8f743da43d3a3d7a6a6de6ab959b75e18405..ae0266cd1fcdd867367b5d472a632843dee4232b 100644 (file)
@@ -1567,7 +1567,12 @@ public class IScrollTable extends Composite implements Table, ScrollListener,
 
         public static final int DEFAULT_ROW_HEIGHT = 24;
 
-        public static final int CELL_CONTENT_PADDING = 3;
+        /**
+         * Amount of padding inside one table cell (this is reduced from the
+         * "cellContent" element's width). You may override this in your own
+         * widgetset.
+         */
+        public static final int CELL_CONTENT_PADDING = 8;
 
         private int rowHeight = -1;