diff options
author | Teemu Suo-Anttila <teemusa@vaadin.com> | 2015-09-16 15:14:09 +0300 |
---|---|---|
committer | Patrik Lindström <patrik@vaadin.com> | 2015-09-16 14:05:13 +0000 |
commit | a2c008be78e12f6e2ee031d5363e696c48181e63 (patch) | |
tree | 1f64e6cb292c3298762daa82e38e5c9bdb97e7f4 /client | |
parent | 32863384d6ff09e2a38fe35d56e6726ab91b7336 (diff) | |
download | vaadin-framework-a2c008be78e12f6e2ee031d5363e696c48181e63.tar.gz vaadin-framework-a2c008be78e12f6e2ee031d5363e696c48181e63.zip |
Fix Grid unbuffered validation error area theme (#18812)
Change-Id: Ifa37b341b1d49bb7964978a1f2ed0a65efbdcb2a
Diffstat (limited to 'client')
-rw-r--r-- | client/src/com/vaadin/client/widgets/Grid.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/client/src/com/vaadin/client/widgets/Grid.java b/client/src/com/vaadin/client/widgets/Grid.java index b77299dc17..54d7f86e41 100644 --- a/client/src/com/vaadin/client/widgets/Grid.java +++ b/client/src/com/vaadin/client/widgets/Grid.java @@ -1768,6 +1768,8 @@ public class Grid<T> extends ResizeComposite implements editorOverlay.appendChild(cellWrapper); editorOverlay.appendChild(messageAndButtonsWrapper); + updateBufferedStyleName(); + int frozenColumns = grid.getVisibleFrozenColumnCount(); double frozenColumnsWidth = 0; double cellHeight = 0; @@ -1948,6 +1950,7 @@ public class Grid<T> extends ResizeComposite implements int messageAndButtonsHeight = messageAndButtonsWrapper .getOffsetHeight(); double bottomOfButtons = trPageBottom + messageAndButtonsHeight; + return bottomOfButtons < tfootPageTop; } @@ -1988,6 +1991,16 @@ public class Grid<T> extends ResizeComposite implements } } + private void updateBufferedStyleName() { + if (isBuffered()) { + editorOverlay.removeClassName("unbuffered"); + editorOverlay.addClassName("buffered"); + } else { + editorOverlay.removeClassName("buffered"); + editorOverlay.addClassName("unbuffered"); + } + } + protected void setStylePrimaryName(String primaryName) { if (styleName != null) { editorOverlay.removeClassName(styleName); |