aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Englund <marc.englund@itmill.com>2009-01-09 06:57:32 +0000
committerMarc Englund <marc.englund@itmill.com>2009-01-09 06:57:32 +0000
commit0407dbcf18a50eaf439dc18e4640307ac0733578 (patch)
tree68044c3b6575cb50700aff053f15e0a71adc8307
parent7cf525985a796861c352619b2713e7a6a4f63283 (diff)
downloadvaadin-framework-0407dbcf18a50eaf439dc18e4640307ac0733578.tar.gz
vaadin-framework-0407dbcf18a50eaf439dc18e4640307ac0733578.zip
Sampler minor styling.
svn changeset:6469/svn branch:trunk
-rw-r--r--WebContent/ITMILL/themes/sampler/sampler/styles.css4
-rw-r--r--src/com/itmill/toolkit/demo/sampler/SamplerApplication.java4
2 files changed, 8 insertions, 0 deletions
diff --git a/WebContent/ITMILL/themes/sampler/sampler/styles.css b/WebContent/ITMILL/themes/sampler/sampler/styles.css
index de2a186a55..105273abc7 100644
--- a/WebContent/ITMILL/themes/sampler/sampler/styles.css
+++ b/WebContent/ITMILL/themes/sampler/sampler/styles.css
@@ -56,6 +56,10 @@
margin-left: -3px;
}
+.i-app-SamplerApplication tr.i-table-row,
+.i-app-SamplerApplication tr.i-table-row-odd {
+ height: 50px;
+}
.i-app-SamplerApplication tr.i-table-row-section {
color: #333366;
font-size: 18px;
diff --git a/src/com/itmill/toolkit/demo/sampler/SamplerApplication.java b/src/com/itmill/toolkit/demo/sampler/SamplerApplication.java
index f584c0e881..13d09bd6d1 100644
--- a/src/com/itmill/toolkit/demo/sampler/SamplerApplication.java
+++ b/src/com/itmill/toolkit/demo/sampler/SamplerApplication.java
@@ -546,6 +546,10 @@ public class SamplerApplication extends Application {
public Component generateCell(Table source,
Object itemId, Object columnId) {
Feature f = (Feature) itemId;
+ if (f instanceof FeatureSet) {
+ // no icon for sections
+ return null;
+ }
Resource res = new ClassResource(f.getClass(), f
.getIconName(), SamplerApplication.this);
Embedded emb = new Embedded("", res);