Posted by CinemaSaville on October 28, 2009 at 9:42pm
Jump to:
| Project: | Embedded Media Field |
| Version: | 6.x-1.21 |
| Component: | Embedded Video Field |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
When I use Shadowbox for emvideo, I'm getting scrollbars to account for overlap. I went to your site, Aaron- http://Drupalmultimedia.com, and I noticed to you had the same setup, and the same issue. I know it wasn't always like this, so hopefully you'll be able to address this. I attached a screenshot, but I assume you're already aware of it. Thanks again for this amazing module. Looking forward to the media module.
| Attachment | Size |
|---|---|
| Screen shot 2009-10-28 at 2.38.44 PM.jpg | 152.38 KB |
Comments
#1
Ooops, that would be http://DrupalMultiMedia.org
#2
OK, looks like you have set set "scrolling=no" in i-frame.js in the shadowbox players directory. It's set to auto by default. Hope that helps someone.
#3
Automatically closed -- issue fixed for 2 weeks with no activity.
#4
I had the same problem with Shadowbox.
i don't have an i-frame.js file.
I solved this problem by adjusting the shadowbox.css in modules/aquila/gallery-assist-lightboxes/lightboxes/shadowbox/
and setting the overflow of the shadowbox_player to 'hidden'.
when doing this, there will be black space on the right and bottom of the shadowbox. this can be changed by going to the emfield module folder and changing the emvideo.theme.inc
in there, delete the +15 and -15 from the following code lines:
else if ($options['modal'] == 'shadowbox') {
$attributes['attributes']['rel'] = 'shadowbox['. $field['type_name'] .'];width='. ($width + 15) .';height='. ($height + 15);
// Shadowbox needs a .php extension so it knows to open as an iFrame.
$destination .= '/index.php';
}
hope this helps for anyone who has a similar problem
#5
although i thought the issue above was solved, it turns out that was only the case for Firefox.
when checking in Google Chrome, the scroll bars were still there.
I have now copied the code from shadowbox.js to the style.css of my main theme:
#sb-player.html{height:100%;overflow:hidden;}
the scroll bars are now gone in Chrome, but still persist in Safari (have not checked Internet Explorer, not sure if I should...)
does anyone know why Safari displays this differently? I can't think of any logical solution.
#6
Where is this setting? I having the same issue.
#7
#8
Same issue, and don't now how to fix it with the above posts.
Any update for this please.
Truyen
#9
I got it, the body under shadowbox does inherit the style of main body that has min-width that is bigger than the size I set => Override it using css in theme by setting the min-width to 0 or something less than the shadowbox size.
Thank
Truyenle
#10
i fixed this issue for colorbox in http://drupal.org/node/1050792#comment-4137386. it should be trivial to modify that patch for shadowbox. hope this helps!
#11
sounds to me like a bug report
SVillas's workaround works here it is
in your theme's css put
#sb-player {height: 100%;
overflow: hidden;
}
change in emvideo.theme.inc
this
else if ($options['modal'] == 'shadowbox') {$attributes['attributes']['rel'] = 'shadowbox['. $field['type_name'] .'];width='. ($width + 5) .';height='. ($height + 5);
// Shadowbox needs a .php extension so it knows to open as an iFrame.
$destination .= '/index.php';
}
with this
else if ($options['modal'] == 'shadowbox') {$attributes['attributes']['rel'] = 'shadowbox['. $field['type_name'] .'];width='. ($width) .';height='. ($height);
// Shadowbox needs a .php extension so it knows to open as an iFrame.
$destination .= '/index.php';
}
alternative to the hacking of emvideo.theme.inc you can copy & paste the function
function theme_emvideo_modal_generic($field, $item, $formatter, $node, $options = array()) {in your template.php as
function phptemplate_emvideo_modal_generic($field, $item, $formatter, $node, $options = array()) {including the change I mentioned above
#12
I have same problem but the above doesn't seem to fix it for me. It is OKish in firefox (but has a little border strangness) but scrollbars appear in chrome and safari look bad. I don't know about IE as don't have windows.
Here is my example created with cck, views, shadowbox with Shadowbox:thumbnail->Full Media
http://monkeybrainsmedia.com/video
Please if anyone has managed to get this working please tell me how!!
I am using latest version of everything as just upgraded all in case that was the problem but still happens.