From a752fcb10935c73f0a9d9d9c7948bfb29fcbb2e2 Mon Sep 17 00:00:00 2001 From: Leif Åstrand Date: Wed, 13 Nov 2013 12:37:22 +0200 Subject: Add column freezing to Escalator (#3087) Change-Id: I9943b20ca2568c353c90dec598534fbb5ab58203 --- WebContent/VAADIN/themes/base/escalator/escalator.scss | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'WebContent') 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 -- cgit v1.2.3