blob: 36ecc4a953b5141e83e647e0a533af415b5e7b2c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
996,1006d995
< if (settings.h) {
< photo.style.marginTop = Math.max(settings.mh - photo.height, 0) / 2 + 'px';
< }
<
< if ($related[1] && (settings.get('loop') || $related[index + 1])) {
< photo.style.cursor = 'pointer';
< photo.onclick = function () {
< publicMethod.next();
< };
< }
<
1008a998,1000
> var vertpadding = (settings.h - photo.height) / 2;
> var horizpadding = (settings.w - photo.width) / 2;
> photo.style.padding = vertpadding + 'px ' + horizpadding + 'px';
|