Hello,
Why do I need to add two code line in "lightbox.js" too get my scroll bars works in modal mode ?
The function I change is setStyles, here is my change:

     if (stylesArray[i].indexOf('width:') >= 0) {
        var w = stylesArray[i].replace('width:', '');
        item.width = jQuery.trim(w);
        if (item.id == "modalContainer") $('#modalContainer').css('width',w); // line added...
      }
      else if (stylesArray[i].indexOf('height:') >= 0) {
        var h = stylesArray[i].replace('height:', '');
        item.height = jQuery.trim(h);
        if (item.id == "modalContainer") $('#modalContainer').css('height',h); // line added...
     }

Someone tell me if there is a solution that would avoid changing the code module ?
If i do not add line, you can see that a get on the jpg attached...
Sorry for my bad bad english, merci.

CommentFileSizeAuthor
LB2_scroll.gif65.88 KBsteveoriol

Comments

stella’s picture

Status: Active » Closed (duplicate)

This has already been implemented in the dev version. Duplicate of #281038: Three separate issues

Cheers,
Stella

steveoriol’s picture

It is OK with the DEV version.
Think you Stella.

steveoriol’s picture

Ohps !, with the DEV version it is not possible to directely link a swf or a flash node ?

ex:<a href="/sites/default/files/flash/xxxx.swf" rel="lightframe[|width:535px; height:300px;]">SWF</a>

stella’s picture

It should work, maybe ensure you have lightbox video support enabled on admin/settings/lightbox2. You may need to use rel="lightvideo" instead. If this is still an issue, please open a separate support request.

Cheers,
Stella

steveoriol’s picture

OK,Thank you for your help Stella.
I open a new issue here http://drupal.org/node/350458