diff options
author | Artur Signell <artur@vaadin.com> | 2015-01-21 21:27:04 +0200 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2015-01-27 11:46:56 +0000 |
commit | c2a2752bff30a6fe6453f3770ad77e6da5cdb96c (patch) | |
tree | 78c8b1a347281c8d9f2e490648240f095f4a3390 | |
parent | a6cb362fa4564d32020d78cc1444bd8a1ec44ff6 (diff) | |
download | vaadin-framework-c2a2752bff30a6fe6453f3770ad77e6da5cdb96c.tar.gz vaadin-framework-c2a2752bff30a6fe6453f3770ad77e6da5cdb96c.zip |
Better human readable captions for nested properties (#16433)
Change-Id: I680ab6b2b4ac2c6101b97581feb52cf68adcead1
-rw-r--r-- | server/src/com/vaadin/ui/Grid.java | 2 | ||||
-rw-r--r-- | uitest/src/com/vaadin/tests/components/grid/WidgetRenderersTest.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/server/src/com/vaadin/ui/Grid.java b/server/src/com/vaadin/ui/Grid.java index 2d45dfef61..adb08e0fcc 100644 --- a/server/src/com/vaadin/ui/Grid.java +++ b/server/src/com/vaadin/ui/Grid.java @@ -3157,7 +3157,7 @@ public class Grid extends AbstractComponent implements SelectionNotifier, header.addColumn(datasourcePropertyId); footer.addColumn(datasourcePropertyId); - column.setHeaderCaption(SharedUtil.camelCaseToHumanFriendly(String + column.setHeaderCaption(SharedUtil.propertyIdToHumanFriendly(String .valueOf(datasourcePropertyId))); return column; diff --git a/uitest/src/com/vaadin/tests/components/grid/WidgetRenderersTest.java b/uitest/src/com/vaadin/tests/components/grid/WidgetRenderersTest.java index 01b957ccf5..20fbb12749 100644 --- a/uitest/src/com/vaadin/tests/components/grid/WidgetRenderersTest.java +++ b/uitest/src/com/vaadin/tests/components/grid/WidgetRenderersTest.java @@ -70,7 +70,7 @@ public class WidgetRenderersTest extends MultiBrowserTest { buttonCell.isFocused()); // avoid clicking on the button - buttonCell.click(150, 5); + buttonCell.click(buttonCell.getSize().getWidth() - 10, 5); assertTrue("cell should be focused after focusing", buttonCell.isFocused()); |