question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. Itย collects links to all the places you might be looking at while hunting down a tough bug.

And, if youโ€™re still stuck at the end, weโ€™re happy to hop on a call to see how we can help out.

Initial layout shows only one column

See original GitHub issue

Description

Iโ€™m using react-infinitegrid with material-ui.

When the page is opened, GridLayout shows only one row with initial images stacking together (see images below)

image image

After changing the window size by dragging the browser frame, the images show as expected.

image

Any idea why is this happening?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
quyctdcommented, Sep 16, 2020

@adsee42 Thank you for the sharing.

I realized that my issue happens because of the width of the GridLayout container change when list items doing the update. So I fixed this issue by just added width: 100% into CSS.

0reactions
stale[bot]commented, Oct 18, 2020

This issue/PR has been automatically marked as stale because it has not had any update (including commits, comments, labels, milestones, etc) for 30 days. It will be closed automatically if no further update occurs in 7 day. Thank you for your contributions!

ํ•œ๊ธ€ ์ด ์ด์Šˆ/PR์€ commits, comments, labels, milestones ๋“ฑ 30์ผ๊ฐ„ ํ™œ๋™์ด ์—†์–ด ์ž๋™์œผ๋กœ stale ์ƒํƒœ๋กœ ์ „ํ™˜๋˜์—ˆ์Šต๋‹ˆ๋‹ค. ์ดํ›„ 7์ผ๊ฐ„ ํ™œ๋™์ด ์—†๋‹ค๋ฉด ์ž๋™์œผ๋กœ ๋‹ซํž ์˜ˆ์ •์ž…๋‹ˆ๋‹ค. ํ”„๋กœ์ ํŠธ ๊ฐœ์„ ์— ๊ธฐ์—ฌํ•ด์ฃผ์…”์„œ ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค.

Read more comments on GitHub >

github_iconTop Results From Across the Web

android - GridLayout is showing only one column on some DPI
I've finally found a solution to this problem. Turns out that you just need to specify :layout_width="0dp" for each button.
Read more >
Excel 2010 Page layout view only shows 3 colum and rows.
Hi, Good day, Can someone help me on how to edit or change the page layout view to show default columns and rows....
Read more >
how do I force a single column layout in screen layout
One idea is to force a single column layout, but there are no options for this in screen options. Is there another way...
Read more >
Basic concepts of grid layout - CSS: Cascading Style Sheets
We define rows and columns on our grid with the ... The image below shows a highlighted track โ€“ this is the first-row...
Read more >
Using and formatting columns in Microsoft Word
The default is one column โ€” just a regular document. You can use one of the presets (the two-column layout is useful for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found