-
-
Notifications
You must be signed in to change notification settings - Fork 73
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
Grid Layout requires scroll to update #14
Comments
Hi @quizzicalIntern. Thanks for Issues 😃 If you want to render first at the original size, you need to set the size of the item in the grid. The following example may be helpful. 1.
|
Hello tsuyoshiwada,
The monitorImagesLoaded being set to true helps a little bit. It fixes the
first row of images so that they are the correct size in the grid, but all
the other elements of the grid are still collapsed. I tried working with
the size of the image separately, as you said, and although it changes the
size of the images in general, the same bug still exists. Editting or
specifying the size of the objects doesn't seem to affect the grid.
I am printing the objects through a list, could that be the issue?
<StackGrid
columnWidth={240}
gutterHeight={7}
gutterWidth={45}
duration={0}
monitorImagesLoaded={true}
{childElements}
</StackGrid>
Thank you,
-quizzicalIntern
…On Sat, Jun 3, 2017 at 10:47 PM, tsuyoshi wada ***@***.***> wrote:
Hi @quizzicalIntern <https://github.com/quizzicalintern>. Thanks for
Issues 😃
Is this behavior when monitorImagesLoaded is set to true?
If you want to render first at the original size, you need to set the size
of the item in the grid.
I think that it is necessary to keep the size of the image separately from
the URL of the image.
The following example may be helpful.
1. px Base
<div
style={{
width: 200,
height: 400,
}}>
...</div>
2. Responsive
<div
style={{
width: '100%',
height: 0,
paddingBottom: '200%', // => (height / width) * 100
}}>
...</div>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<tsuyoshiwada/react-stack-grid#14 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AbzRC9tbkz5osK8D5VyR6e4RVSmZyOa4ks5sAjbagaJpZM4NuqwC>
.
|
Hi, Thanks for response. StackGrid may have a bug around the size of the item .... It is helpful if you can tell me the smallest code that can reproduce Issue, if possible. |
Hello,
I apologize, but I am not sure how to do that. I have only recently
started working in ReactJS, so I'm not sure what to do. I know the
{childElements} list is Activity cells containing data pulled from a
database, but their size is variable. New entries can be of varying
height. I apologize for not being more helpful.
…On Mon, Jun 5, 2017 at 7:25 PM, tsuyoshi wada ***@***.***> wrote:
Hi, Thanks for response.
StackGrid may have a bug around the size of the item ....
The code you tell me does not seem to be a problem.
It is helpful if you can tell me the smallest code that can reproduce
Issue, if possible.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<tsuyoshiwada/react-stack-grid#14 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AbzRCxBHGiDYQFfZBBrIyE4XIurJBJSMks5sBKp_gaJpZM4NuqwC>
.
|
Hello I use gutterHeight:
and fix this problem. I hope it's useful. 😄 🤝 |
Hello,
I am working with the react-stack-grid, and when the page loads, all of the cards in the grid are minimized within the grid until the user scrolls. Is there a method to force these to be full-sized upon first going to the page?
The text was updated successfully, but these errors were encountered: