diff options
author | Jouni Koivuviita <jouni.koivuviita@itmill.com> | 2011-08-23 13:02:17 +0000 |
---|---|---|
committer | Jouni Koivuviita <jouni.koivuviita@itmill.com> | 2011-08-23 13:02:17 +0000 |
commit | c96076ef8bb2d9d9f27f0b44cb1743af0babab24 (patch) | |
tree | 2365f1f041f4b93eb66eb0f0111c79afe53b86af /WebContent | |
parent | b0a5fd783d5a62b33141727007be8b2971656a32 (diff) | |
download | vaadin-framework-c96076ef8bb2d9d9f27f0b44cb1743af0babab24.tar.gz vaadin-framework-c96076ef8bb2d9d9f27f0b44cb1743af0babab24.zip |
Barebones fix for #6745: Connectors for Tree, i.e. ugly but works. We can make it more pretty in future releases if necessary.
Includes TestBench test for the feature.
svn changeset:20577/svn branch:6.7
Diffstat (limited to 'WebContent')
-rw-r--r-- | WebContent/VAADIN/themes/base/tree/img/connector-item-last.png | bin | 0 -> 148 bytes | |||
-rw-r--r-- | WebContent/VAADIN/themes/base/tree/img/connector-item.png | bin | 0 -> 153 bytes | |||
-rw-r--r-- | WebContent/VAADIN/themes/base/tree/img/connector.png | bin | 0 -> 143 bytes | |||
-rw-r--r-- | WebContent/VAADIN/themes/base/tree/tree.css | 18 | ||||
-rw-r--r-- | WebContent/VAADIN/themes/reindeer/tree/tree.css | 9 | ||||
-rw-r--r-- | WebContent/VAADIN/themes/runo/tree/img/connectors/collapsed-last.png | bin | 0 -> 218 bytes | |||
-rw-r--r-- | WebContent/VAADIN/themes/runo/tree/img/connectors/collapsed.png | bin | 0 -> 242 bytes | |||
-rw-r--r-- | WebContent/VAADIN/themes/runo/tree/img/connectors/connector-item.png | bin | 0 -> 163 bytes | |||
-rw-r--r-- | WebContent/VAADIN/themes/runo/tree/img/connectors/connector.png | bin | 0 -> 907 bytes | |||
-rw-r--r-- | WebContent/VAADIN/themes/runo/tree/img/connectors/expanded-last.png | bin | 0 -> 226 bytes | |||
-rw-r--r-- | WebContent/VAADIN/themes/runo/tree/img/connectors/expanded.png | bin | 0 -> 262 bytes |
11 files changed, 25 insertions, 2 deletions
diff --git a/WebContent/VAADIN/themes/base/tree/img/connector-item-last.png b/WebContent/VAADIN/themes/base/tree/img/connector-item-last.png Binary files differnew file mode 100644 index 0000000000..2eb04a32fd --- /dev/null +++ b/WebContent/VAADIN/themes/base/tree/img/connector-item-last.png diff --git a/WebContent/VAADIN/themes/base/tree/img/connector-item.png b/WebContent/VAADIN/themes/base/tree/img/connector-item.png Binary files differnew file mode 100644 index 0000000000..5f88fe1bef --- /dev/null +++ b/WebContent/VAADIN/themes/base/tree/img/connector-item.png diff --git a/WebContent/VAADIN/themes/base/tree/img/connector.png b/WebContent/VAADIN/themes/base/tree/img/connector.png Binary files differnew file mode 100644 index 0000000000..2844bba731 --- /dev/null +++ b/WebContent/VAADIN/themes/base/tree/img/connector.png diff --git a/WebContent/VAADIN/themes/base/tree/tree.css b/WebContent/VAADIN/themes/base/tree/tree.css index 9e056dc4d6..593771a49c 100644 --- a/WebContent/VAADIN/themes/base/tree/tree.css +++ b/WebContent/VAADIN/themes/base/tree/tree.css @@ -11,10 +11,24 @@ .v-tree-node-caption:focus { outline: none; } +div.v-tree-node-leaf { + background: transparent; +} +.v-tree-connectors .v-tree-node-leaf, +.v-tree-connectors .v-tree-node-leaf:hover { + background: transparent url(img/connector-item.png) no-repeat 8px 0; +} +.v-tree-connectors .v-tree-node-leaf-last, +.v-tree-connectors .v-tree-node-leaf-last:hover { + background: transparent url(img/connector-item-last.png) no-repeat 8px 0; +} .v-tree-node-expanded { - background-position: -5px -10px; + background: transparent url(../common/img/sprites.png) no-repeat -5px -10px; } -div.v-tree-node-leaf { +.v-tree-connectors .v-tree-node-children { + background: transparent url(img/connector.png) repeat-y 8px bottom; +} +.v-tree-connectors .v-tree-node-children-last { background: transparent; } .v-tree-node-caption { diff --git a/WebContent/VAADIN/themes/reindeer/tree/tree.css b/WebContent/VAADIN/themes/reindeer/tree/tree.css index 3f77bd991d..d33985f713 100644 --- a/WebContent/VAADIN/themes/reindeer/tree/tree.css +++ b/WebContent/VAADIN/themes/reindeer/tree/tree.css @@ -11,6 +11,15 @@ .v-tree-node-expanded { background-position: -7px 5px; } +.v-tree-connectors .v-tree-node-leaf { + background-position: 8px -1px; +} +.v-ie6 .v-tree-connectors div.v-tree-node-leaf { + background: transparent url(../../base/tree/img/connector-item.png) no-repeat 8px -1px; +} +.v-ie6 .v-tree-connectors div.v-tree-node-leaf-last { + background: transparent url(../../base/tree/img/connector-item-last.png) no-repeat 8px -1px; +} .v-tree-node-caption { margin-left: 16px; padding-bottom: 1px; diff --git a/WebContent/VAADIN/themes/runo/tree/img/connectors/collapsed-last.png b/WebContent/VAADIN/themes/runo/tree/img/connectors/collapsed-last.png Binary files differnew file mode 100644 index 0000000000..28b3626d79 --- /dev/null +++ b/WebContent/VAADIN/themes/runo/tree/img/connectors/collapsed-last.png diff --git a/WebContent/VAADIN/themes/runo/tree/img/connectors/collapsed.png b/WebContent/VAADIN/themes/runo/tree/img/connectors/collapsed.png Binary files differnew file mode 100644 index 0000000000..db4d41cccd --- /dev/null +++ b/WebContent/VAADIN/themes/runo/tree/img/connectors/collapsed.png diff --git a/WebContent/VAADIN/themes/runo/tree/img/connectors/connector-item.png b/WebContent/VAADIN/themes/runo/tree/img/connectors/connector-item.png Binary files differnew file mode 100644 index 0000000000..b4d0d7aa56 --- /dev/null +++ b/WebContent/VAADIN/themes/runo/tree/img/connectors/connector-item.png diff --git a/WebContent/VAADIN/themes/runo/tree/img/connectors/connector.png b/WebContent/VAADIN/themes/runo/tree/img/connectors/connector.png Binary files differnew file mode 100644 index 0000000000..a93f458787 --- /dev/null +++ b/WebContent/VAADIN/themes/runo/tree/img/connectors/connector.png diff --git a/WebContent/VAADIN/themes/runo/tree/img/connectors/expanded-last.png b/WebContent/VAADIN/themes/runo/tree/img/connectors/expanded-last.png Binary files differnew file mode 100644 index 0000000000..504b715122 --- /dev/null +++ b/WebContent/VAADIN/themes/runo/tree/img/connectors/expanded-last.png diff --git a/WebContent/VAADIN/themes/runo/tree/img/connectors/expanded.png b/WebContent/VAADIN/themes/runo/tree/img/connectors/expanded.png Binary files differnew file mode 100644 index 0000000000..5c036ed038 --- /dev/null +++ b/WebContent/VAADIN/themes/runo/tree/img/connectors/expanded.png |