Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #14118 from cctuan/943813
Browse files Browse the repository at this point in the history
Bug 943813 - [Gallery] scrollToShowThumbnail not work
  • Loading branch information
cctuan committed Dec 20, 2013
2 parents cfb63d4 + 9e233b9 commit a092cc5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/gallery/js/gallery.js
Expand Up @@ -624,7 +624,9 @@ function fileCreated(fileinfo) {

// Make the thumbnail for image n visible
function scrollToShowThumbnail(n) {
var selector = 'li[data-index="' + n + '"]';
if (!files[n])
return;
var selector = 'li[data-filename="' + files[n].name + '"]';
var thumbnail = thumbnails.querySelector(selector);
if (thumbnail) {
var screenTop = thumbnails.scrollTop;
Expand Down

0 comments on commit a092cc5

Please sign in to comment.