Commit 91efd20c authored by frjo's avatar frjo
Browse files

Issue #1461666 by Turek: Add option to remove scrollbars for overflowing content in Admin.

parent 634f4746
...@@ -267,6 +267,13 @@ function colorbox_admin_settings() { ...@@ -267,6 +267,13 @@ function colorbox_admin_settings() {
'#prefix' => '<div class="colorbox-slideshow-settings-activate">', '#prefix' => '<div class="colorbox-slideshow-settings-activate">',
'#suffix' => '</div>', '#suffix' => '</div>',
); );
$form['colorbox_custom_settings']['colorbox_scrolling'] = array(
'#type' => 'radios',
'#title' => t('Scrollbars'),
'#options' => array(0 => t('Off'), 1 => t('On')),
'#default_value' => variable_get('colorbox_scrolling', 1),
'#description' => t('If false, Colorbox will hide scrollbars for overflowing content. This could be used on conjunction with the resize method for a smoother transition if you are appending content to an already open instance of Colorbox.'),
);
$js_hide = variable_get('colorbox_slideshow', 0) ? '' : ' js-hide'; $js_hide = variable_get('colorbox_slideshow', 0) ? '' : ' js-hide';
$form['colorbox_custom_settings']['colorbox_slideshow_settings']['wrapper_start'] = array( $form['colorbox_custom_settings']['colorbox_slideshow_settings']['wrapper_start'] = array(
......
...@@ -194,6 +194,7 @@ function _colorbox_doheader() { ...@@ -194,6 +194,7 @@ function _colorbox_doheader() {
'initialWidth' => variable_get('colorbox_initialwidth', '300'), 'initialWidth' => variable_get('colorbox_initialwidth', '300'),
'initialHeight' => variable_get('colorbox_initialheight', '100'), 'initialHeight' => variable_get('colorbox_initialheight', '100'),
'fixed' => variable_get('colorbox_fixed', 1) ? TRUE : FALSE, 'fixed' => variable_get('colorbox_fixed', 1) ? TRUE : FALSE,
'scrolling' => variable_get('colorbox_scrolling', 1) ? TRUE : FALSE,
); );
} }
else { else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment