Patrick Campbell
Patrick Campbell
Would love to see this! 😎
If you pass the image height and width (whether from the DOM or otherwise) into your grid item you can determine its ratio. Then you could set the height of...
Plus one. Always on Top is a nice feature but it should be optional.
@plagasul do you know the ratio of the image before it is loaded? In my case I do, which is how I derive the height in advance e.g. get width...
@plagasul — if you can avoid using intervals you should. Introducing time or the notion of a timeline normally causes pain somewhere along the line. For what it's worth, Isotope...
Agreed on parent element resize detection vs browser width. If you are developing for a React component we should assume the logic is tied to only its component — e.g....