Code Monkey home page Code Monkey logo

Comments (7)

bvaughn avatar bvaughn commented on May 5, 2024

This is a little tricky. You could try using a combination of onRowsRendered (to monitor which row the user has recently scrolled to) and scrollToIndex (to ensure that that row is still visible after you've unshifted. But in general I don't try to support this because a change in rowsCount could mean entirely new data.

from react-virtualized.

bvaughn avatar bvaughn commented on May 5, 2024

I'll leave this issue open for discussion for now. Let me know if that approach has any promising results.

from react-virtualized.

duminhtam avatar duminhtam commented on May 5, 2024

This will bad on UX, it's not smooth
I recommend we need to have a config to display As A Chat or Message Box (displayBottomUpwards mode) to get the old msg.

from react-virtualized.

bvaughn avatar bvaughn commented on May 5, 2024

Fair enough. But realistically I don't think I'll have the bandwidth to get to this any time too soon.

I'll leave the ticket open, tagged as "help wanted", in case anyone else feels more inclined to implement this though. :)

from react-virtualized.

duminhtam avatar duminhtam commented on May 5, 2024

Hi how about we have a config to prepend on the DOM like jQuery prepend a div?

Check this demo:
http://musician-peggy-71735.bitballoon.com/

from react-virtualized.

bvaughn avatar bvaughn commented on May 5, 2024

I don't see how that would work with a library like react-virtualized. Allowing external code to modify the DOM in any way would make the virtualization too fragile.

from react-virtualized.

bvaughn avatar bvaughn commented on May 5, 2024

Closing for now due to lack of a response and/or a clear path forward.

from react-virtualized.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.