Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overflow child components #19

Open
daimagine opened this issue Aug 3, 2015 · 4 comments
Open

Overflow child components #19

daimagine opened this issue Aug 3, 2015 · 4 comments

Comments

@daimagine
Copy link

Hi again,

I found an issue today. I use a sidebar for navigation and ReactInfinity is in content side on the right side.
In mobile view grid displayed correctly, grids divide evenly and fill the screen correctly.
But in desktop mode, the grid is overflowed onto right side so the rest of child component is not shown or clipped.

screen shot 2015-08-03 at 4 22 53 pm

this is my gist https://gist.github.com/daimagine/e5e11a3a85118f6b5d9c

Please help me find what is wrong with my grid
Best regards,

@nmn
Copy link
Owner

nmn commented Aug 3, 2015

@daimagine This is a known bug, React-Infinity expects to be full width when being rendered. There is probably a simple workaround, I will get back to you with that.

@nmn
Copy link
Owner

nmn commented Aug 3, 2015

Can you wait for one day, this is a simple bug-fix, I'll fix it later today? So that you can stay prepared, you will need to write a function that returns the width and height of the available viewport for React-infinity.

The function will look something like this:

function getSize(){
  return {
    width: window.innerWidth - sideBarWidth,
    height: window.innerHeight
  }
}

After I fix this bug, React infinity will let you pass this function as an optional prop.

@spo
Copy link

spo commented May 8, 2016

Any updates on this? Is it possible to place my elements inside a container? How can I set a div container for React-Infinity?

@nmn
Copy link
Owner

nmn commented May 8, 2016

Fixing this caused a bigger re-write. In-progress. Sorry, can't give a very good ETA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants