Commit Graph
88 Commits
Author SHA1 Message Date
Brian Vaughn 7130e03555 Shrink domHelpers. Remove unnecessary style. Better minification. 2019-03-04 08:25:57 -08:00
Brian Vaughn 38732dd326 Added 'direction' prop to grid (including docs and tests) 2019-03-03 17:48:56 -08:00
Brian Vaughn 98c7ea733a Deprecate list direction=horizontal|vertical in favor of direction=ltr|rtl and separate layout=horizontal|vertical 2019-03-03 14:20:28 -08:00
Brian Vaughn a42c2fba96 Prettier 2019-03-03 12:54:31 -08:00
Brian Vaughn 05df0f46c9 Merge branch 'issues/148' of https://github.com/davidgarsan/react-window into davidgarsan-issues/148 2019-03-03 12:53:35 -08:00
Brian Vaughn c747a2989c Only count scrollbar size in scrollToItem() when scrolling is required 2019-03-02 21:41:45 -08:00
Brian Vaughn 97bd7e0c89 Grid scrollToItem() takes scrollbar size into consideration 2019-03-02 11:12:34 -08:00
David ebdb13141b Fix lint error 2019-03-01 12:58:09 +01:00
David cdf8454869 Add RTL support for List component 2019-03-01 12:09:59 +01:00
Brian Vaughn 7c3c55840d 1.5.2 2019-02-18 17:29:47 -08:00
Brian Vaughn eabe58f6d4 Added tests and fixed same potential bug in VariableSizeGrid 2019-02-18 17:27:10 -08:00
Amit Solanki 3a398a1fdc Update VariableSizeList.js 2019-02-18 09:32:45 +05:30
Amit Solanki 09717d838e Handle case when number of element reduces in list 2019-02-18 09:31:18 +05:30
Brian Vaughn a83c5cdf80 Updated getDerivedState Flow annotations to address a warning in a newer version of Flow. 2019-01-28 14:33:37 -08:00
Brian Vaughn 80bc98838b Added areEqual and shouldComponentUpdate methods 2018-12-27 20:06:45 -05:00
Brian Vaughn 9d7c3f59bf List re-renders item sxwhen direction prop changes 2018-12-21 15:05:12 -08:00
Brian Vaughn 5d4e30a899 Deprecated outerTagName+innerTagName props in favor of outerElementType+innerElementType props 2018-12-21 14:54:27 -08:00
Brian Vaughn c37a32a930 Replaced setTimeout with requestAnimationFrame based timer, to avoid starvation issue for isScrolling reset. 2018-12-21 14:11:31 -08:00
Brian Vaughn 8f6e421388 Grid overscans in both directions when not scrolling. 2018-12-21 13:36:42 -08:00
Brian Vaughn 08fe116317 Deprecated grid overscanCount prop in favor of overscanColumnsCount and overscanRowsCount 2018-12-21 13:17:59 -08:00
Brian Vaughn 343ca5b4b2 List overscans in both directions when not scrolling. 2018-12-21 12:44:25 -08:00
Brian Vaughn 3c9a558b28 Pass itemData to itemKey 2018-12-03 15:29:36 -08:00
Brian Vaughn bd23795bb0 Added Flow annotations to memoized methods to avoid a Flow warning for newer versions of Flow 2018-11-03 17:41:14 -07:00
Brian Vaughn 21d4a51a16 Relaxed 'children' validation checks. They were too strict and didn't support new React APIs like 'memo'. 2018-11-03 17:34:00 -07:00
Nicholas L e48ce2c4c6 Update gridComponent to use ComponentType 2018-10-28 16:17:16 +13:00
Nicholas L 97eefe0ff4 Fix not using all props. 2018-10-28 16:16:43 +13:00
Nicholas L dc49468089 Dont use function with react$node 2018-10-25 22:01:04 +13:00
Nicholas L 784ba4cb70 Add test and fix for flowtype for children 2018-10-25 21:40:23 +13:00
Brian Vaughn c560b18e81 Variable size list and grid no longer call item size getters when count is 0 2018-10-03 12:30:16 -07:00
Brian Vaughn 6584e55332 Rename test_flow.js to test.js.flow 2018-10-03 11:52:08 -07:00
Brian Vaughn aaece8aff0 Added another flow test for ItemData type 2018-10-03 11:42:56 -07:00
Bogdan Chadkin 21d59ec2c7 Make itemData generic in grids and lists
In this PR I am trying to achieve more sound implementation of itemData
props in all grids and lists.

To prevent `empty` type itemData is made optional with defaultProps.

`flow` script is replaced with `flow:check` to allow running `yarn flow
status` to view all errors and warnings.
2018-10-03 18:20:11 +03:00
Brian Vaughn 35f99db902 Fixed invalid this pointer in VariableSizeGrid that broke the resetAfter* methods 2018-10-01 10:11:49 -07:00
Brian Vaughn 7c481d6028 Make Grid scrollTo() params scrollLeft/scrollTop both optional 2018-10-01 10:00:13 -07:00
Travis Arnold 42f3fef67d Remove overflow:hidden from inner container 2018-09-13 10:24:15 -07:00
Brian Vaughn f65379aadb Fixed edge case scrollToItem bug that caused lists/grids with very few items to have negative scroll offsets. 2018-08-23 14:50:05 -04:00
Brian Vaughn 8c6ec401e1 FixedSizeGrid and FixedSizeList automatically clear style cache when item size props change. 2018-08-06 15:48:45 -07:00
Brian Vaughn dce5b6d866 Tightened up Flow types for resetAfterIndices 2018-08-04 08:53:30 -07:00
Neo 0ca0c90870 address comments 2018-08-04 20:18:24 +08:00
Neo b49bab680e add shouldForceUpdate to resetAfterIndex 2018-08-02 11:22:18 +08:00
Brian Vaughn 750f30e72d Fix lint rule 2018-07-23 09:49:36 -07:00
Brian Vaughn 0d8d351ec8 Moved _instanceProps back to class property 2018-07-23 09:39:28 -07:00
Mateusz Burzyński 0f2897fc04 Use explicit constructor in React components 2018-07-23 18:03:46 +02:00
Brian Vaughn 2f7b7f0203 Prevent unnecessary scrollbars for List
Resolves issue #22
2018-07-23 08:52:43 -07:00
Brian Vaughn f76d121269 Renamed props type 2018-07-23 08:28:15 -07:00
Mateusz Burzyński 78549d0d4f Fixed typo in type name 2018-07-23 09:20:09 +02:00
Brian Vaughn 5fd2f9e176 Settled on inner/outer tagName and ref props 2018-07-22 09:19:00 -07:00
Brian Vaughn 5e2fcc6d83 Added containerTagName and itemData props to list and grid 2018-06-30 07:43:28 -07:00
Brian Vaughn 90da4a1c36 Nit 2018-06-16 10:30:05 -07:00
Brian Vaughn 5bfb730c33 Merge pull request #11 from nihgwu/fix-search
fix item search
2018-06-16 10:28:24 -07:00