React-grid-layout: [Bug] onWidthChange is only called on breakpoint changes

Created on 26 Mar 2018  路  4Comments  路  Source: STRML/react-grid-layout

Please mark the type of this issue:

  • [x] Bug
  • [ ] Feature Request
  • [ ] Question

Hi,
I noticed that the callback onWidthChange is only called when there is a breakpoint change, but _not on every_ change of width, like the name suggests. Calling it on every width change makes this callback a lot more useful, since there already is a callback for breakpoint changes (onBreakpointChange).
This behavior can be observed in this example.

Greetings,
species

Most helpful comment

Has this been published to npm? onWidthChange is still not being called unless breakpoint-change occurs..;;;

All 4 comments

Fixed in #770

Can a new version be published to include this pull request?

Has this been published to npm? onWidthChange is still not being called unless breakpoint-change occurs..;;;

No update on this?

Was this page helpful?
0 / 5 - 0 ratings