-
Notifications
You must be signed in to change notification settings - Fork 168
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
Change size of fullscreen container #108
Comments
Hello, Your use case is not very clear, can you be more precise ?
you can use here is an example : Chocolat/test/test.chocolat.js Lines 153 to 162 in 399cf1c
|
@nicolas-t thanks for your reply and sorry for being unclear. My question might be quite easy. Let's say you have a big long single page with some sticky-top navbar. Now from somewhere, a chocolat gallery is opened as fullwindow. Due to the z-index of the navbar the closing button of the gallery might be covered further the image is not centered. What I'm looking for is a way to change the height of a fullwindow gallery to take the remaining space (viewport minus navbar) It might work to just give the gallery some top-margin based on the viewport height? Unfortunately I can only test this evening when back in the office. |
In your css you can add body .chocolat-overlay{
left: 0;
bottom: 0;
right: 0;
top: 60px; /* height of the topbar */
height: auto;
width: auto;
}
body .chocolat-wrapper{
left: 0;
bottom: 0;
right: 0;
top: 60px; /* height of the topbar */
height: auto;
width: auto;
} I think it'll do the job |
Wonderful and thanks for your helping hand @nicolas-t will give it a try! |
@nicolas-t this did it! thanks! For the record, had to add some margin to the content as well:
|
a shit. this will also affect the full-fullscreen view unfortuantaly the :fullscreen pseudo class does not catch .chocolat-content :/ |
a little dirty but might do it ...
|
Hi,
I'm in the need to dynamically create and place the container used by chocolate.
Is there some hook I can use to do something after an image has been clicked?
As alternative would it work to change the height of the fullWindow container to abstract the height of a navbar?
The text was updated successfully, but these errors were encountered: