Remove scrollbars in iFrames (again)
-
Hi everyone,
The plugin works perfectly well on a website project where a iframe lightbox opens an inner page with a flipbook in javascript. Have a look here then click on ‘Blue Sailor’s’ in the right column.
I use Lightbox Plus 2.4.6.The annoying thing are the scrollbars I would like to remove, because they become crazy with the javascript flipbook effect.
I tried the solution in this topic (1 year ago):
#cboxLoadedContent {overflow: hidden !important;}
doesn’t work anymore butiframe.cboxIframe {overflow: hidden !important;}
does. But ONLY on Firefox, not in Chrome, Safari and IE9.The solution I also found is to add the attribute
scrolling='no'
in the <iframe> tag. I hope this should work for all the browsers (it does on Chrome).
But it’s tricky to enable this attribute since I don’t know how the iframes are generated by the plugin.I eventually found a solution in that topic (3 years ago):
Add a new line 165 in lightbox.php as follows
$lightboxPlusJavaScript .= ' $lbp.fn.colorbox.settings.scrollbars = false;'.$this->EOL( );
But the plugin evolved so much that even the lightbox.php doesn’t exist anymore. The code have moved to the lightbox-plus/classes/actions.class.php file, but I was not able to add a javascript line that works.
Finally I found this in the plugin changelog for the version 1.6:
Added scrollbars option to allow users to turn off scrollbars when using the resize() method.
It seems that this option doesn’t exist anymore.
Did somebody encounter the same problem and found a solution to disable scrollbars? Is there a way to disable scrollbars on the Lightbox Plus options panel?
Thank you by advance for your kind help.
- The topic ‘Remove scrollbars in iFrames (again)’ is closed to new replies.