forked from Flipkart/recyclerlistview
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Honour sticky header height while scrolling in RLV (Flipkart#439)
* Added height and width for StickyObject * Refactoring onScroll logic in StickyObject * Adding setter func for StickyHeader top offset * Adding setter func for StickyHeader top offset * Accomodate StickyHeader height for RecyclerListView scrollToIndex * Remove for loop from StickyObject onScroll for perf * Reverting changes made to RecyclerListView * Reverting changes made to StickyContainer * Adding container styles for StickyObject * Adding overrideContainerRenderer for StickObjects logic in StickyContainer * Reverting code in StickyContainer * Reverting code in StickyContainer * Removing trailing whitespace from StickyContainer and added comments * Fixing logic to update smallestVisibleIndex * Remove data field from OverrrideContainerRenderer * Removed distanceFromWindow param; added correctedScrollOffset func param to StickyContainer * Removed getCorrectedScrollOffset from StickyObject * code refactor * Fixing bugs related to scrollOffset * Updated README.md * Removing unused code * Documentation and code cleaning * Removing unused code * Spell correction for RLV propTypes * Updated propTypes for StickyContainer * Added TODO comments * Adding comments for clarification * Rename stickyContainerRenderer to renderStickyContainer * changed scrollOffsetCorrection to updateLogicalOffset * Added images to README.md * Update README.md * Added getStartEndCorrection() to RecyclerListView * Propogate start,end correction to StickyObject * Added getWindowCorrection() param to StickyContainer * Updated README.md * Updated sticky/README.md * Updated getWindowCorrection() docs * Updated getWindowCorrection() docs * Update README.md * Removing null checks for windowCorrection * Refactoring updateTrackingWindows code for ViewabilitityTracker * Refactoring getWindowCorrection to applyWindowCorrection * Changes in RecyclerListView to accomodate applyWindowCorrection * Code changes for review comments * Removing onLayout from StickyObject * Changes to address review comments * Refactoring ViewabilityTracker -> updateTrackingWindows * Resolving review comments * Refactoring container style for StickyObjects * Passing WindowCorrection to StickyObjects * Refactoring getWindowCorrection in StickyObjects Co-authored-by: Talha Naqvi <naqvitalha@gmail.com>
- Loading branch information
1 parent
ee4d5f8
commit c80825f
Showing
10 changed files
with
199 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.