Closed acwolff closed 6 years ago
To suppress some flickering of the gallery when the page was loaded, I did initially hide the the div with the gallery via css code:
#indexDiv {
display: none;
}
At the end of the .ready() function I did show it: $('#indexDiv').show();
This is apparently not a good idea, because after I removed the css code the problem was solved.
This album with a Justified Gallery works OK on a Windows 10 system if the Microsoft Edge browser is used. Also on an iPad there are no problems.
But with Chrome vs 68 and Firefox vs 61 the Justified Gallery is invisible if I start with a maximized window. If I next select a normal window (Windows key + Down arrow key). it is still not visible, but it shows up if I make the window a little bit smaller or wider. If I start in a non-maximized window the Gallery is mostly immediately visible. If I test it locally on my PC, I see also no problems.
The next code is used:
If I click F12 without visible gallery the code is changed into:
Notice the style="height: 0px;" which explains why it is invisible
If I click F12 with visible gallery the code is changed into:
To see this problem open my Album in maximized mode. If you click the “Nijenhuis” button another album with the same problem opens. Go back to the first album by clicking the “Fietstocht” button.
Your help to solve this problem is appreciated!
Edit:
I discovered that it depends on the server:
This works OK: https://andrewolff.jalbum.net/Heino/ This gives problems: https://www.andrewolff.nl/FotoSerie/Wandelingen/Heino/index.html