overflow: hidden;
padding: 3px 0 3px 3px;
margin-right: 5px;
- height: 18px;
+ line-height: 23px;
}
/* Fix textfield size to correspond label size inside table */
+.i-table-cell-content input.i-textfield,
+.i-table-cell-content .i-button {
+ margin: -2px 0 -2px -3px;
+}
.i-table-cell-content .i-textfield,
.i-table-cell-content .i-datefield {
- height: auto;
- margin: -2px 0 -3px -3px;
width: 97%; /* approximate */
}
+
/* ...but not for datefield textarea */
.i-table-cell-content .i-datefield .i-textfield {
width: auto;
}
/* datefield button is too high for table cell */
.i-table-cell-content .i-datefield-button {
- height: 20px;
+ height: 25px;
}
overflow: hidden;
padding: 3px 0 3px 3px;
margin-right: 5px;
- height: 18px;
+ line-height: 23px;
}
/* Fix textfield size to correspond label size inside table */
+.i-table-cell-content input.i-textfield,
+.i-table-cell-content .i-button {
+ margin: -2px 0 -2px -3px;
+}
.i-table-cell-content .i-textfield,
.i-table-cell-content .i-datefield {
- height: auto;
- margin: -2px 0 -3px -3px;
width: 97%; /* approximate */
}
+
/* ...but not for datefield textarea */
.i-table-cell-content .i-datefield .i-textfield {
width: auto;
}
/* datefield button is too high for table cell */
.i-table-cell-content .i-datefield-button {
- height: 20px;
+ height: 25px;
}
package com.itmill.toolkit.tests.tickets;\r
\r
import com.itmill.toolkit.Application;\r
-import com.itmill.toolkit.ui.GridLayout;\r
import com.itmill.toolkit.ui.Label;\r
import com.itmill.toolkit.ui.TabSheet;\r
import com.itmill.toolkit.ui.Window;\r
\r
public class Ticket2098 extends Application {\r
\r
+ private static final String info = "First tab hidden, second should initially be selected";\r
+\r
public void init() {\r
Window w = new Window(getClass().getSimpleName());\r
setMainWindow(w);\r
// setTheme("tests-tickets");\r
- GridLayout layout = new GridLayout(10, 10);\r
- w.setLayout(layout);\r
- createUI(layout);\r
+ w.addComponent(new Label(info));\r
+ createUI(w);\r
}\r
\r
- private void createUI(GridLayout layout) {\r
+ private void createUI(Window w) {\r
TabSheet ts = new TabSheet();\r
Label l1 = new Label("111");\r
Label l2 = new Label("222");\r
ts.addTab(l4, "4", null);\r
\r
l1.setVisible(false);\r
- ts.setSelectedTab(l3);\r
\r
- layout.addComponent(ts);\r
+ w.addComponent(ts);\r
}\r
}\r