diff options
author | Teemu Suo-Anttila <teemusa@vaadin.com> | 2015-06-10 15:34:45 +0300 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2015-06-10 13:15:06 +0000 |
commit | be9f7f3128a2f4c895f595058a2f53af1bc91778 (patch) | |
tree | d4167d554192c57d39db07b881e364438ccf13da /client | |
parent | 04b3ae04b5fec74b16691ca079dc59a1eadbae5d (diff) | |
download | vaadin-framework-be9f7f3128a2f4c895f595058a2f53af1bc91778.tar.gz vaadin-framework-be9f7f3128a2f4c895f595058a2f53af1bc91778.zip |
Fix Escalator spacer visibility calucation (#17826)
Now calls directly to correct spacer container to update visibility
instead of doing extra work with recalculating everything.
Change-Id: I8625033012773a10983cd5d4f6ef3ce1be50ee26
Diffstat (limited to 'client')
-rw-r--r-- | client/src/com/vaadin/client/widgets/Escalator.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/client/src/com/vaadin/client/widgets/Escalator.java b/client/src/com/vaadin/client/widgets/Escalator.java index 45c8267d53..3990683e64 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,7 +4994,8 @@ public class Escalator extends Widget implements RequiresResize, spacerScrollerRegistration.removeHandler(); spacerScrollerRegistration = null; } - recalculateElementSizes(); + + updateSpacerDecosVisibility(); } public Map<Integer, SpacerImpl> getSpacers() { @@ -5305,7 +5306,7 @@ public class Escalator extends Widget implements RequiresResize, initSpacerContent(spacer); body.sortDomElements(); - recalculateElementSizes(); + updateSpacerDecosVisibility(); } private void updateExistingSpacer(int rowIndex, double newHeight) { @@ -6286,7 +6287,6 @@ public class Escalator extends Widget implements RequiresResize, body.recalculateSectionHeight(); footer.recalculateSectionHeight(); - body.spacerContainer.updateSpacerDecosVisibility(); scroller.recalculateScrollbarsForVirtualViewport(); body.verifyEscalatorCount(); body.reapplySpacerWidths(); |