redimensionar script para galeria

Estou querendo redimensionar a div inteira da galeria e redimensionar todas as imagens geradas dinamicamente usando o script da galeria.

até agora eu tenho

    $(window).resize(function() {
    var h = $(window).height();
    var galleriaHeight = h-54;
    var w = $(".content").width();
    var galleriaWidth = w-18;

    $("#galleria").height(galleriaHeight);
    $("#galleria").width(w);


    $(".galleria-stage").height(galleriaHeight);
    $(".galleria-stage").width(galleriaWidth);

    $(".galleria-images .galleria-image img").css({"max-height":"auto"});
    $(".galleria-images .galleria-image img").css({"max-width":galleriaWidth-36});

    $(".galleria-stage").height(galleriaHeight);
    $(".galleria-stage").width(galleriaWidth);

    $(".galleria-container").width(w);
    $(".galleria-container").height(galleriaHeight);

    $(".caption").width(w);
    $(".counter-nav").width(w);

    var sidebarHeight =h-54;
    var contentHeight =h-36;

    $(".sidebar1").height(sidebarHeight);
    $(".content").height(contentHeight);




});

Mas tudo está aumentando de forma desigual e muito confuso. Tendo examinado o código de tela cheia, também adicionei

this.bind(Galleria.RESCALE, function() {
 POS = this.getStageHeight() - tab.height() - 2;
 thumbs.css('top', OPEN ? POS - list.outerHeight() + 2 : POS);
 var img = this.getActiveImage();
 if (img) 
     {
     fixCaption(img);
     }
});

mas isso também não está funcionando ...

Suponho que desejo recarregar a página depois de redimensionar, mas em tempo real ... ou redimensionar todos os elementos em relação uns aos outros, ou usar o script de redimensionamento da Galleria ...

Alguma ideia?

questionAnswers(1)

yourAnswerToTheQuestion