akaymaz / galleriffic

Automatically exported from code.google.com/p/galleriffic
0 stars 0 forks source link

Thumbs navigation - would like script to display none instead of visibility hidden #244

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Using Galleriffic 5 example, I am not centering the thumbnails.  So when the 
thumbs navigation arrows get set by the script to "visibility: hidden", I'd 
really like them to just be set to "display: none" so that the thumbs would 
completely left-justify when there is no left arrow, and not leave space for 
the hidden arrow.

I tried setting the onPageTransitionIn script as follows, as well as adding 
"display: block" in the CSS, but it just ends up never displaying the arrows at 
all, even when it should.  Ideas?

function() {
var prevPageLink = this.find('a.prev').css('display', 'none');
var nextPageLink = this.find('a.next').css('display', 'none');

// Show appropriate next / prev page links
if (this.displayedPage > 0)
prevPageLink.css('display', 'block');

var lastPage = this.getNumPages() - 1;

if (this.displayedPage < lastPage)
nextPageLink.css('display', 'block');

this.fadeTo('fast', 1.0);
}

Original issue reported on code.google.com by l...@onedogmedia.com on 12 Sep 2011 at 7:14