diff options
author | Leif Åstrand <leif@vaadin.com> | 2013-11-13 12:37:22 +0200 |
---|---|---|
committer | Leif Åstrand <leif@vaadin.com> | 2013-11-14 09:26:31 +0200 |
commit | a752fcb10935c73f0a9d9d9c7948bfb29fcbb2e2 (patch) | |
tree | 98d91b145db17550db2c377cdf9c8353110c9af3 /WebContent/VAADIN/themes | |
parent | fd95c4845dd3a50da779b73f176cf9f281e57ddd (diff) | |
download | vaadin-framework-a752fcb10935c73f0a9d9d9c7948bfb29fcbb2e2.tar.gz vaadin-framework-a752fcb10935c73f0a9d9d9c7948bfb29fcbb2e2.zip |
Add column freezing to Escalator (#3087)
Change-Id: I9943b20ca2568c353c90dec598534fbb5ab58203
Diffstat (limited to 'WebContent/VAADIN/themes')
-rw-r--r-- | WebContent/VAADIN/themes/base/escalator/escalator.scss | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/WebContent/VAADIN/themes/base/escalator/escalator.scss b/WebContent/VAADIN/themes/base/escalator/escalator.scss index 461a3050e9..436f849456 100644 --- a/WebContent/VAADIN/themes/base/escalator/escalator.scss +++ b/WebContent/VAADIN/themes/base/escalator/escalator.scss @@ -8,16 +8,12 @@ $border-color: #aaa; background-color: $background-color; } -.#{$primaryStyleName}-cell { - -moz-box-sizing: border-box; - box-sizing: border-box; -} - .#{$primaryStyleName}-scroller { position: absolute; overflow: auto; height: inherit; - width: inherit; /* width will be overridden if we have frozen columns */ + left: 0; /* Left position adjusted to align with frozen columns */ + right: 0; } .#{$primaryStyleName}-tablewrapper { @@ -87,6 +83,13 @@ $border-color: #aaa; border: 1px solid $border-color; padding: 2px; white-space: nowrap; + -moz-box-sizing: border-box; + box-sizing: border-box; +} + +.#{$primaryStyleName}-cell.frozen { + position: relative; + z-index: 0; } }
\ No newline at end of file |