Comments (17)
Found temp hack to solve the problem (tested on chrome only):
{lightBoxImage && (
<Lightbox
mainSrc={lightBoxImage}
onImageLoad={() => {
window.dispatchEvent(new Event('resize'));
}}
onCloseRequest={() => setLightBoxImage(null)}
/>
)}
from react-image-lightbox.
If anyone is looking for an alternative to react-image-lightbox, here is the recently released lightbox library - yet-another-react-lightbox. All feedback is welcome.
from react-image-lightbox.
Any update on this issue?
from react-image-lightbox.
same issue
from react-image-lightbox.
Same issue, if you resize the window the current image appears
from react-image-lightbox.
Having the same issue
from react-image-lightbox.
same issue
from react-image-lightbox.
Same problem here, but at least @ihappycoder 's hacky fix worked
from react-image-lightbox.
Same issue, if you resize the window the current image appears
same here
from react-image-lightbox.
Same issue
from react-image-lightbox.
Same, please fix
from react-image-lightbox.
I have this issue on react-18-image-lightbox and original versions.
With "hacky fix" - issue gone, only have little longer loading time.
from react-image-lightbox.
Is this a separate package for react-18? looks like the readme is not updated properly
https://www.npmjs.com/package/react-18-image-lightbox?activeTab=readme
from react-image-lightbox.
Looks like the library frontend-collective/react-image-lightbox will not be maintained anymore. Really a pity.
from react-image-lightbox.
ihappycoder THANKS A LOT❤️ You saved my life 😘
from react-image-lightbox.
Work with me, node v18.2.0, thank you.
from react-image-lightbox.
onImageLoad={() => window.dispatchEvent(new Event("resize"))}
fixed it for me
from react-image-lightbox.
Related Issues (20)
- Click close button behave to be scroll to prev image
- Image cache issue on react image light
- usage of deprecated life cycle methods, getting warnings of the same HOT 4
- Library maintenance and improvements HOT 14
- Centering problem when page has a scrollbar
- Bad overlay..
- How can I put a link on the title just like the demo?
- Is Medium Zoom effect possible
- Doc improvement request for reactModalStyle
- Blinkin when pushing the button supposed to trigger the state set in onMoveNextRequest
- Animation Duration Is Blocking Prev/Next Button Clicks
- Missing "loader" in TypeScript Types
- Need custom component PR Merged
- Uncaught ReferenceError: global is not defined HOT 4
- Need thumbnail images on bottom of the screen
- Does it work with React 18? HOT 3
- Image not loading on launch when React.StrictMode is enabled. HOT 6
- Info: Proper typescript component React 18.2.0 and Gatsby With tailwind
- React 18 not supported. HOT 4
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-image-lightbox.