diff options
author | elmot <elmot@vaadin.com> | 2015-06-09 10:54:46 +0300 |
---|---|---|
committer | Teppo Kurki <teppo.kurki@vaadin.com> | 2015-06-09 11:50:02 +0000 |
commit | 3dba07d162eda32e397605c778d3662a8f1520fb (patch) | |
tree | 50a57338a94f00d23a1eb358b83c29578e305c85 /client | |
parent | 5ebfdecb1b4eb016b674f7a01257959a50047eb3 (diff) | |
download | vaadin-framework-3dba07d162eda32e397605c778d3662a8f1520fb.tar.gz vaadin-framework-3dba07d162eda32e397605c778d3662a8f1520fb.zip |
Fix for "Grid detail row outline overflows" (#17826)
Clipping of an existing spacer decoration was not updated after
adding/removing another spacer.
Change-Id: I0e0da484fe135cf109dd081a0d30a818813f8283
Diffstat (limited to 'client')
-rw-r--r-- | client/src/com/vaadin/client/widgets/Escalator.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/client/src/com/vaadin/client/widgets/Escalator.java b/client/src/com/vaadin/client/widgets/Escalator.java index 55462d18fe..45c8267d53 100644 --- a/client/src/com/vaadin/client/widgets/Escalator.java +++ b/client/src/com/vaadin/client/widgets/Escalator.java @@ -1278,7 +1278,7 @@ public class Escalator extends Widget implements RequiresResize, * <p> * The implementation must call {@link #paintRemoveRow(Element, int)} * for each row that is removed from the DOM. - * + * * @param index * the logical index of the first removed row * @param numberOfRows @@ -4994,6 +4994,7 @@ public class Escalator extends Widget implements RequiresResize, spacerScrollerRegistration.removeHandler(); spacerScrollerRegistration = null; } + recalculateElementSizes(); } public Map<Integer, SpacerImpl> getSpacers() { @@ -5304,6 +5305,7 @@ public class Escalator extends Widget implements RequiresResize, initSpacerContent(spacer); body.sortDomElements(); + recalculateElementSizes(); } private void updateExistingSpacer(int rowIndex, double newHeight) { @@ -6284,6 +6286,7 @@ public class Escalator extends Widget implements RequiresResize, body.recalculateSectionHeight(); footer.recalculateSectionHeight(); + body.spacerContainer.updateSpacerDecosVisibility(); scroller.recalculateScrollbarsForVirtualViewport(); body.verifyEscalatorCount(); body.reapplySpacerWidths(); |