From 1d8b9898d5a5ee1681f0c5b4340a4c8b245fd373 Mon Sep 17 00:00:00 2001 From: Jouni Koivuviita Date: Thu, 19 May 2011 08:31:58 +0000 Subject: Fixes #6745 "Connectors for Tree" svn changeset:18907/svn branch:6.6 --- .../VAADIN/themes/base/tree/img/connector-item.png | Bin 0 -> 157 bytes .../VAADIN/themes/base/tree/img/connector.png | Bin 0 -> 140 bytes WebContent/VAADIN/themes/base/tree/tree.css | 20 ++++++++++++++++---- 3 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 WebContent/VAADIN/themes/base/tree/img/connector-item.png create mode 100644 WebContent/VAADIN/themes/base/tree/img/connector.png (limited to 'WebContent/VAADIN/themes/base') diff --git a/WebContent/VAADIN/themes/base/tree/img/connector-item.png b/WebContent/VAADIN/themes/base/tree/img/connector-item.png new file mode 100644 index 0000000000..a64c209cb1 Binary files /dev/null and b/WebContent/VAADIN/themes/base/tree/img/connector-item.png differ diff --git a/WebContent/VAADIN/themes/base/tree/img/connector.png b/WebContent/VAADIN/themes/base/tree/img/connector.png new file mode 100644 index 0000000000..c56b8f4244 Binary files /dev/null and b/WebContent/VAADIN/themes/base/tree/img/connector.png differ diff --git a/WebContent/VAADIN/themes/base/tree/tree.css b/WebContent/VAADIN/themes/base/tree/tree.css index 9e056dc4d6..37af1d11a8 100644 --- a/WebContent/VAADIN/themes/base/tree/tree.css +++ b/WebContent/VAADIN/themes/base/tree/tree.css @@ -4,17 +4,29 @@ padding: 1px 0; outline: none; } -.v-tree-node { +.v-tree .v-tree-node { background: transparent url(../common/img/sprites.png) no-repeat 5px -37px; padding: 1px 0; } .v-tree-node-caption:focus { outline: none; } -.v-tree-node-expanded { - background-position: -5px -10px; +.v-tree div.v-tree-node-leaf { + background: transparent; +} +.v-tree-connectors div.v-tree-node-leaf { + background: transparent url(img/connector-item.png) no-repeat 8px 0; +} +.v-tree-connectors div.v-tree-node-leaf-last { + background: transparent url(img/connector-item.png) no-repeat 8px bottom; +} +.v-tree .v-tree-node-expanded { + background: transparent url(../common/img/sprites.png) no-repeat -5px -10px; +} +.v-tree-connectors .v-tree-node-children { + background: transparent url(img/connector.png) repeat-y 8px bottom; } -div.v-tree-node-leaf { +.v-tree-connectors .v-tree-node-children-last { background: transparent; } .v-tree-node-caption { -- cgit v1.2.3