开发者

How to stop Portrait Images being truncated using jQuery Cycle Lite Code

开发者 https://www.devze.com 2023-02-25 14:05 出处:网络
I am using the following Wordpress 3.1.1 with Nextgen Gallery and the JQuery Cycle Lite plugin. I have downloaded the latest version of the Cycle Lite Plug in from http://jquery.malsup.com/cycle/lite/

I am using the following Wordpress 3.1.1 with Nextgen Gallery and the JQuery Cycle Lite plugin. I have downloaded the latest version of the Cycle Lite Plug in from http://jquery.malsup.com/cycle/lite/

The problem I have is the Gallery I am using has some portrait images in and although I have fit set they are being chopped off rather than shrunk. See http://www.rjt.org.uk/home/testlocation1

I am using [jj-ngg-jquery-cycle html_id="about-cycle-lite" gallery="7" width="400" height="600" fit="0" center="1"] in Wordpress.

I suspect the problem is with the following section, but am not sure how to fix it.

 开发者_运维技巧       $slides.each(function() {
        var $el = $(this);
        this.cycleH = (opts.fit && opts.height) ? opts.height : $el.height();
        this.cycleW = (opts.fit && opts.width) ? opts.width : $el.width();
    });

Suggestions please.


Your example page has an exception: jQuery("div#about-cycle-lite").jjcycle is not a function

I've created a working jsFiddle but all the images are the same size in your example there are none taller.

0

精彩评论

暂无评论...
验证码 换一张
取 消