diff options
author | Ian <aristophian@googlemail.com> | 2011-11-05 12:50:19 +0100 |
---|---|---|
committer | Ian <aristophian@googlemail.com> | 2011-11-05 12:50:19 +0100 |
commit | b07b4759c4f48d24343a53e1b2ca85e2d39811d2 (patch) | |
tree | 44913c4348e6d50f6478f0cd84c9b9c17a111a7a /lib | |
parent | 94eef9eaecbdcc98f4b5adb0da939480a324b0ad (diff) |
added if (nh < 1) { var nh = 0; }
to start album upper border not as nh = -n
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gallery.common.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/gallery.common.js b/lib/gallery.common.js index 697a33cb..b499a2cd 100644 --- a/lib/gallery.common.js +++ b/lib/gallery.common.js @@ -33,6 +33,7 @@ var elh = $(el).height(); var ph = $(this).height(); var nh = (ph - elh) / 2; + if (nh < 1) { var nh = 0; } $(el).css('margin-top', nh); }); }; |