Is there a specific reasons why explicit style definition is used in some cases?
Example: Album grid cells have a DIV with style="margin-top: 83px;", actually 83 may vary by the image (experimental build).
While I may understand visibility/block use, margins, etc are killing the custom layouts.
would it be removed in the future or where is the code which doing this is located?
Posts: 7994
Where do you see that? We put all CSS into the theme as much as possible so that the theme can override it.
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git | help! vote!
Posts: 2466
This is a sample from the page source visible in Source Explorer/Developer Tools (F12) of IE8
It may be a "deception" of the tool or code injected by jQuery. I would suspect the tool but somehow it only happened with update to latest experimental code
Posts: 27300
Viewing the source of the file in Firefox I don't see this;
but do when using the web developer tools ( firefox plugin);
So it does seem to me like a combination of the jQuery and the tool/tools of IE and FF.
I will see if the css/html/ui expert can chime in.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 238
There's a jQuery function in the default theme which handles vertical alignment of thumbnails. It does a calculation and enters that value on page load. It should work across browsers and thumbnail sizes.
--
2tbsp.com
Posts: 2466
What call are you refereing to and where is it in templates?
Posts: 238
The call is in default/js/ui.init.js, look for vAlign().
--
2tbsp.com
Posts: 2466
Thank you. Commenting out the call did help