-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trim the left & right margins #4
Comments
Please try with v0.3.1. If the problem remains, what devices/browsers are you using? Do the images not fill up the screen vertically when there are side margins? The hard-coded numbers are not good practice, though they are directly based on Bootstrap's CSS values. I'll think about whether there's a better way to do it. |
@compact You could, at the very least, put those numbers into an object and expose it to the developers to make it more configurable. |
You can edit the calculation methods themselves, as in http://compact.github.io/angular-bootstrap-lightbox/demo2/index.html |
In my experience, setting dimensions to max actually works pretty well:
|
I'm trying to fit this lightbox into a mobile screen. There is a huge amount of margins on the left & right of every image.
I'm not sure how to go about customizing this. I see the "calculateImageDimensionLimits" & "calculateModalDimensions" but don't know how to change any of those values. Should those hard-coded numbers be baked into the configuration?
The text was updated successfully, but these errors were encountered: