From a2c008be78e12f6e2ee031d5363e696c48181e63 Mon Sep 17 00:00:00 2001 From: Teemu Suo-Anttila Date: Wed, 16 Sep 2015 15:14:09 +0300 Subject: Fix Grid unbuffered validation error area theme (#18812) Change-Id: Ifa37b341b1d49bb7964978a1f2ed0a65efbdcb2a --- client/src/com/vaadin/client/widgets/Grid.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'client') 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 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 extends ResizeComposite implements int messageAndButtonsHeight = messageAndButtonsWrapper .getOffsetHeight(); double bottomOfButtons = trPageBottom + messageAndButtonsHeight; + return bottomOfButtons < tfootPageTop; } @@ -1988,6 +1991,16 @@ public class Grid 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); -- cgit v1.2.3