aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArtur Signell <artur.signell@itmill.com>2009-09-03 06:02:33 +0000
committerArtur Signell <artur.signell@itmill.com>2009-09-03 06:02:33 +0000
commitd09f289ab7aaaa34971df54d1d17e69ca8b88816 (patch)
tree5214cea40f6fa8320d8738cc62beca57e3d07cd0
parent83cea087a4401f6e52edfa9bab56cbe15d07135b (diff)
downloadvaadin-framework-d09f289ab7aaaa34971df54d1d17e69ca8b88816.tar.gz
vaadin-framework-d09f289ab7aaaa34971df54d1d17e69ca8b88816.zip
Test case for #3263
svn changeset:8643/svn branch:6.1
-rw-r--r--WebContent/VAADIN/themes/tests-tickets/styles.css6
-rw-r--r--src/com/vaadin/tests/components/checkbox/CheckboxCaptionWrapping.java37
2 files changed, 42 insertions, 1 deletions
diff --git a/WebContent/VAADIN/themes/tests-tickets/styles.css b/WebContent/VAADIN/themes/tests-tickets/styles.css
index d918c3178f..0640b90f04 100644
--- a/WebContent/VAADIN/themes/tests-tickets/styles.css
+++ b/WebContent/VAADIN/themes/tests-tickets/styles.css
@@ -1288,4 +1288,8 @@ padding:2px;
.green {
background:green;
}
- \ No newline at end of file
+
+.v-checkbox-wrap label {
+ white-space: normal;
+}
+
diff --git a/src/com/vaadin/tests/components/checkbox/CheckboxCaptionWrapping.java b/src/com/vaadin/tests/components/checkbox/CheckboxCaptionWrapping.java
new file mode 100644
index 0000000000..e083e31dae
--- /dev/null
+++ b/src/com/vaadin/tests/components/checkbox/CheckboxCaptionWrapping.java
@@ -0,0 +1,37 @@
+package com.vaadin.tests.components.checkbox;
+import com.vaadin.tests.components.TestBase;
+import com.vaadin.ui.CheckBox;
+import com.vaadin.ui.Label;
+import com.vaadin.ui.VerticalLayout;
+
+public class CheckboxCaptionWrapping extends TestBase {
+
+ @Override
+ protected String getDescription() {
+ return "The checkbox caption consists of 10 words which should all be shown. There should be no extra white space between the checkbox caption and the label below it.";
+ }
+
+ @Override
+ protected Integer getTicketNumber() {
+ return 3263;
+ }
+
+ @Override
+ protected void setup() {
+ setTheme("tests-tickets");
+ VerticalLayout mainLayout = new VerticalLayout();
+ CheckBox cb = new CheckBox(
+ "Checkbox with some Incididunt ut labore et dolore magna aliqua.");
+ cb.setStyleName("wrap");
+ mainLayout.setStyleName("borders");
+ mainLayout.setWidth("300px");
+ mainLayout.addComponent(cb);
+ mainLayout.addComponent(new Label(
+ "Lorem ipsum dolor sit amet, consectetur adipisicing"
+ + " elit, sed do eiusmod tempor."));
+
+ addComponent(mainLayout);
+
+ }
+
+}