* bug, fixed image handling which were slender enough, but too high.
* bug, fix for PDO sqlite when trying to fetch one single row (contributed by
* bug, fix for incorrect SQL query (contributed by Arun Persaud).
+ * bug, fixed window-movement when switching between photo index & photo
* feature, removed much of HTML tables to speed up GUI & CSS cleanup
* feature, key navigation (next/prev photo, photo index, reset all).
* feature, gen_thumbs.php has a new overwrite-thumbnails option.
return;
if(thumbimg = document.getElementById('thumbimg' + thumb_id)) {
- window.scrollTo(0, thumbimg.offsetTop-100);
+ window.scrollTo(0, findPos(thumbimg)-100);
}
} // moveToThumb()
+function findPos(obj) {
+ var curtop = 0;
+ if (obj.offsetParent) {
+ do {
+ curtop += obj.offsetTop;
+ } while (obj = obj.offsetParent);
+ }
+ return [curtop];
+}
+
function showCredits()
{
var credits = document.getElementById("content");