Changeset 26390

Show
Ignore:
Timestamp:
25.10.2012 14:07:47 (7 years ago)
Author:
sjm84
Message:

The "Close slideshow" button will now remain at the top of the box even when the image is scrolled down

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/js/document_scripts.js

    r26358 r26390  
    13101310    if(!($("#gs-slideshow").length)) 
    13111311    { 
    1312         var slideshowDiv = $("<div>", {id:"gs-slideshow"}); 
     1312        var slideshowDiv = $("<div>", {id:"gs-slideshow", style:"height:100%;"}); 
    13131313        var loadingImage = $("<img>", {src:gs.imageURLs.loading}); 
    13141314        slideshowDiv.append(loadingImage); 
     
    13741374    var _images = new Array(); 
    13751375    var _mainDiv = mainDiv; 
    1376     var _imageDiv = $("<div>", {id:"ssImageDiv"}); 
    1377     var _navDiv = $("<div>", {style:"height:2em;"}); 
     1376    var _imageDiv = $("<div>", {id:"ssImageDiv", style:"height:95%; overflow:auto;"}); 
     1377    var _navDiv = $("<div>", {style:"height:5%;"}); 
    13781378    var _nextButton = $("<img>", {src:gs.imageURLs.next, style:"float:right; cursor:pointer;"}); 
    13791379    var _prevButton = $("<img>", {src:gs.imageURLs.prev, style:"float:left; cursor:pointer; display:none;"});