Comments (6)
I applied the following style and the issue seems to be gone.
.react-photo-gallery--gallery > div {
align-items: stretch;
& > img {
min-height: 100%;
}
}
Don't know why this works, but it does...
from react-photo-gallery.
it seems to be the same on Chrome. Using v8.0.0
from react-photo-gallery.
I am experiencing the same issue, does the bug have anything to do with iOS/iPadOS 15? I remember not having this issue before updating.
Tested and no issues on macOS 11.4 and Android 11. Wondering if this is caused by the WebKit implementation?
from react-photo-gallery.
I am experiencing the same issue, does the bug have anything to do with iOS/iPadOS 15? I remember not having this issue before updating.
Tested and no issues on macOS 11.4 and Android 11. Wondering if this is caused by the WebKit implementation?
No, it has no link with IOS15. The main reason is that, the parent div of the images have "display:flex;" but there is no "align-items" by default align-items is stretch
from react-photo-gallery.
I applied the following style and the issue seems to be gone.
.react-photo-gallery--gallery > div { align-items: stretch; & > img { min-height: 100%; } }Don't know why this works, but it does...
I will try that
from react-photo-gallery.
Missing width and height props for photos also prevent them from displaying stretchily.
from react-photo-gallery.
Related Issues (20)
- Lightbox image not centering HOT 3
- Adding attributes
- Handing images when they are missing
- Empty markup rendered using Jest and testing-library HOT 2
- React 17.x support HOT 6
- Rows Gallery Layout problem HOT 1
- how to change number of image per row?
- How to load many images locally
- This Does not have support for react 17.0 HOT 2
- Additional props for photo
- Is is possible to cover images in gridview? HOT 1
- Caption, and hi-res download
- Add gap property to Gallery HOT 6
- How to add style to images?
- Custom dynamic columns example does not load
- Max image container width and height
- Defaultprops warning
- Can I use it with Angular?
- Update return type for `columns` function prop to `number | undefined`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-photo-gallery.