minor fix for sidebar

This commit is contained in:
Harry Bomrah authored and Christophe Vilayphiou committed 2012-09-12 02:14:50 +08:00
1 parent 8a71bd530f
commit 4ea0c0ec9c
2 files changed
+8 -5

No files matched your search

@@ -90,7 +90,7 @@ var galleryAPI = function(){
wHeight = $(window).height();
$("#main_pic").height("auto");
$img.height("100%");
$img.css("height","auto");
var updatePhotoTag = function(){
var tagnames = imageArray[imagecount].tag_names;
@@ -185,8 +185,8 @@ var galleryAPI = function(){
$img.css({"padding":""})
$("#main_pic").height("auto");
}else{
$("#main_pic").height(wHeight);
// $img.height("100%");
$("#main_pic").height(wHeight);
$img.css("height","auto");
$rslide.css("position","");
$rslide.addClass("fullscreen");
$img.css({"padding":($rslide.height()-$img.height())/2})
@@ -197,7 +197,10 @@ var galleryAPI = function(){
var pageurl = dom.attr('href');
$img.fadeOut(200,function(){
$img.attr({"src":dom.attr("data-content"),"height":"auto"});
if($rslide.hasClass("fullscreen"))
$img.attr({"src":dom.attr("data-content")}).css("height","100%");
else
$img.attr({"src":dom.attr("data-content")}).css("height","auto");
$img.fadeIn(200);
if($rslide.hasClass("fullscreen")){
$img.css({"padding":($rslide.height()-$img.height())/2})