Skip to content

Commit d8ad0fd

Browse files
committed
Updates deps, moves to prettier + eslint, updates readme with warning about monitoring position.
1 parent 1f80560 commit d8ad0fd

File tree

6 files changed

+2570
-1838
lines changed

6 files changed

+2570
-1838
lines changed

.eslintrc

Lines changed: 0 additions & 48 deletions
This file was deleted.

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
sudo: false
22
language: node_js
33
cache:
4+
npm: true
45
directories:
56
- node_modules
67
node_js:

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export default sizeMe()(MyComponent)
2222

2323
* Responsive Components!
2424
* Easy to use.
25-
* Monitor Width OR Height OR Position (or all of them).
25+
* Monitor Width OR Height.
2626
* Extensive browser support.
2727
* Supports any Component type, i.e. stateless/class.
2828
* 8.85KB gzipped.
@@ -76,6 +76,10 @@ const sizeMeConfig = {
7676
// your Component.
7777
monitorHeight: false,
7878

79+
// NOTE: This currently does not work, apologies. You will get a value if
80+
// you set this to true, but if only your components position changes and
81+
// not its size then you will not get an updated position. I need to
82+
// look deeper into this to find a performant solution.
7983
// If true, then any changes to your Components position will cause an
8084
// recalculation of the "size" prop which will then be be passed into
8185
// your Component.

0 commit comments

Comments
 (0)