sachinchoolur / lightgallery.js

Full featured JavaScript image & video gallery. No dependencies
https://sachinchoolur.github.io/lightgallery.js/
Other
5.3k stars 596 forks source link

Positioning wrong when `text-align` is not `left` #197

Closed stuartpb closed 3 years ago

stuartpb commented 3 years ago

In a document with a style rule like body {text-align: center} (or "right"), the contents of the .lg-outer wrapper get misplaced, as their starting positions are in either the center or the right of the screen.

I have a PR incoming to fix this momentarily.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. If the issue is still valid for version 2.x, please re-open. Apologize for not responding on time. Thank you for your contributions.