GithubHelp home page GithubHelp logo

Comments (6)

DrewDahlman avatar DrewDahlman commented on June 5, 2024

Hmm not sure - just put this together http://jsfiddle.net/bvmp3gqe/ using fluid example

from mason.

 avatar commented on June 5, 2024

Could it be related that my wrapper div has a fixed height?

from mason.

DrewDahlman avatar DrewDahlman commented on June 5, 2024

Yep. That would cause it. It needs a flex height in order to size properly.

Sent from my Delorean

On Jun 5, 2015, at 10:55 AM, Marti Planellas [email protected] wrote:

Could it be related that my wrapper div has a fixed height?


Reply to this email directly or view it on GitHub.

from mason.

 avatar commented on June 5, 2024

Hi @DrewDahlman , I'm trying to do a horizontal grid, so I need a fixed height, is there any way of doing that? How would I need to modify the library to achieve it?

Thanks!

from mason.

tamtrong avatar tamtrong commented on June 5, 2024

Hi @DrewDahlman , your mansonjs is cool. However, when I create 2 grids in the same page ( #grid1 & #grid2), the Error "Cannot set property '0' of undefined" always appears despite I config the grids seperately:

  • $("#grid1").mason(...)
  • $("#grid2").mason(...)
    Could you please give me some ideas about this?

Thanks!

from mason.

bl0wfish avatar bl0wfish commented on June 5, 2024

Applying position:relative to the container fixes it for me.
The problem is caused by the calculation of a block's top offset. If positioning is not relative it will be the offset to the top of the page, instead of the container:

t = Math.round($block.position().top / elements.block.height)

from mason.

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.