summaryrefslogtreecommitdiffstats
path: root/client/src
diff options
context:
space:
mode:
authorAnna Koskinen <Ansku@users.noreply.github.com>2020-10-13 12:21:02 +0300
committerGitHub <noreply@github.com>2020-10-13 12:21:02 +0300
commit05f7734b868ea41b0a2047dec304945f515c1c2f (patch)
treea778bb3c31546a8eeedd5bbafddf374979ca64f4 /client/src
parente3b0a113b112724923f326806c7e618e1f01cee0 (diff)
downloadvaadin-framework-05f7734b868ea41b0a2047dec304945f515c1c2f.tar.gz
vaadin-framework-05f7734b868ea41b0a2047dec304945f515c1c2f.zip
Take border into account in Grid editor position when it opens upwards. (#12118)
Diffstat (limited to 'client/src')
-rwxr-xr-xclient/src/main/java/com/vaadin/client/widgets/Grid.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/client/src/main/java/com/vaadin/client/widgets/Grid.java b/client/src/main/java/com/vaadin/client/widgets/Grid.java
index ebf5c8ca96..a47cc4bfca 100755
--- a/client/src/main/java/com/vaadin/client/widgets/Grid.java
+++ b/client/src/main/java/com/vaadin/client/widgets/Grid.java
@@ -2040,9 +2040,10 @@ public class Grid<T> extends ResizeComposite implements HasSelectionHandlers<T>,
// overlay from the bottom
editorOverlay.insertFirst(messageAndButtonsWrapper);
int gridHeight = grid.getElement().getOffsetHeight();
- editorOverlay.getStyle().setBottom(
- gridHeight - overlayTop - tr.getOffsetHeight(),
- Unit.PX);
+ double borderHeight = WidgetUtil
+ .getBorderBottomThickness(editorOverlay);
+ editorOverlay.getStyle().setBottom(gridHeight - overlayTop
+ - tr.getOffsetHeight() + borderHeight, Unit.PX);
editorOverlay.getStyle().clearTop();
}