Closed (duplicate)
Project:
Lightbox2
Version:
6.x-1.8
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Dec 2008 at 09:38 UTC
Updated:
23 Dec 2008 at 10:12 UTC
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.
| Comment | File | Size | Author |
|---|---|---|---|
| LB2_scroll.gif | 65.88 KB | steveoriol |
Comments
Comment #1
stella commentedThis has already been implemented in the dev version. Duplicate of #281038: Three separate issues
Cheers,
Stella
Comment #2
steveoriolIt is OK with the DEV version.
Think you Stella.
Comment #3
steveoriolOhps !, 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>Comment #4
stella commentedIt 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
Comment #5
steveoriolOK,Thank you for your help Stella.
I open a new issue here http://drupal.org/node/350458