GithubHelp home page GithubHelp logo

Unable to get the responsive design without specifying the height(itemHeight) in Grid and child component about react-stonecutter HOT 2 CLOSED

dantrain avatar dantrain commented on May 14, 2024
Unable to get the responsive design without specifying the height(itemHeight) in Grid and child component

from react-stonecutter.

Comments (2)

ALBERT-JEGAN avatar ALBERT-JEGAN commented on May 14, 2024

I am facing the same issue as https://github.com/dantrain/react-stonecutter/issues/2. But here i m adding the content dynamically inside a FilterInfoBox component. So Can you please help me to calculate box height dynamically

from react-stonecutter.

dantrain avatar dantrain commented on May 14, 2024

Hi,

The way measureItems works is by measuring the heights and caching these values in an object for performance. It's not meant to support items that constantly change their heights. If you want this feature I suggest you write your own version of the measureItems higher-order component and use that with the SpringGrid.

https://github.com/dantrain/react-stonecutter/blob/master/src/higher-order-components/measureItems.jsx

I've made another example of measuring content of unknown height, please check it out:
https://github.com/dantrain/stonecutter-images-example

from react-stonecutter.

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.