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.

Item overlaps until window resize

See original GitHub issue

I load 10 images with ngFor and I get a single image overlapping, which gets correctly positioned after I resize the window. This type of thing used to get fixed with [useImagesLoaded]="true", but this property not supported anymore.

Any ideas how to handle this?

Related stackoverflow question (older version)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
konstantinosftwcommented, Nov 3, 2020

@wynfred you are the best, I would have never noticed it. I tested it and you are correct, everything falls into place now that I removed fitWidth: true.

My issue is resolved, hope this also helps @pimmesz.

Thanks again!

2reactions
wynfredcommented, Nov 2, 2020

Hi @konstantinosftw , the stackblitz project was really helpful!

The issue is you need to remove fitWidth because it doesn’t work with element sizing. https://masonry.desandro.com/options.html#fitwidth

Read more comments on GitHub >

github_iconTop Results From Across the Web

Flexbox elements overlap on window resize
I am using Flexbox for this, and everything looks great as long as the browser is in full screen, and the sections have...
Read more >
Masonry Grid Overlaps, works fine after resizing browser ...
In this case, the overlap happens on simple text-based posts. Strangely, after resizing the browser window, there are no issues.
Read more >
How to prevent button overlap when resizing window?
I have 4 buttons in a single row on the website page linked. However, when I resize the window, some of the buttons...
Read more >
web-design - On window resize, DIV overlap on other div.
Don't use position: absolute to layout your grid or items. The reason they overlap is because absolute postioned elemets are taken out of ......
Read more >
Item info overlaps item image when screen size gets smaller
I am trying to: have the product info and image not overlap when the screen responsive size gets smaller or more toward a...
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