X-Git-Url: http://www.average.org/gitweb/?p=mkgallery.git;a=blobdiff_plain;f=include%2Fslideshow.js;h=2de9fee5b7b8b8770bfd6d2c606567ddadf47e5d;hp=0b19b6bd4b3df1a4560fe7ae049f859aeedb8dbf;hb=ab432814a482877e9ec4fc066ac113120e5ef1cf;hpb=60693a3a7ccafdbedbb28155d86f51dd3b07329b diff --git a/include/slideshow.js b/include/slideshow.js index 0b19b6b..2de9fee 100644 --- a/include/slideshow.js +++ b/include/slideshow.js @@ -33,7 +33,7 @@ var slideShow = new Class({ this.container = $(container); this.container.setStyles({ - position: 'relative', + /* position: 'relative', */ overflow: 'hidden' }); if(this.options.onClick){ @@ -173,8 +173,10 @@ var slideShow = new Class({ if (vfactor < factor) { factor = vfactor; } if (hfactor < factor) { factor = hfactor; } factor *= .95; - height = Math.round(height * factor); - width = Math.round(width * factor); + if (factor < 1) { + height = Math.round(height * factor); + width = Math.round(width * factor); + } var topoff = (this.height - height)/2; var leftoff = (this.width - width)/2; /* alert('dim: '+width+'x'+height+'+'+leftoff+'+'+topoff); */