Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show a floating horizontal scrollbar for tables #1092

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions core/constant_inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -672,6 +672,9 @@
define( 'DROPZONE_VERSION', '5.5.0' );
define( 'DROPZONE_HASH', 'sha384-TBYvJK9bRa7Ii3OZh+eaXb5r98Ad36+kotsxTD3tIEa9vgJOQ0lRMfZtWAJxPq4P' );

# Floating Scroll JS
define( 'FLOATING_SCROLL_VERSION', '3.0.4' );

# Byte Order Markers
define( 'UTF8_BOM', "\xEF\xBB\xBF" );

Expand Down
6 changes: 6 additions & 0 deletions core/layout_api.php
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,9 @@ function layout_head_css() {
html_css_link( 'bootstrap-datetimepicker-' . DATETIME_PICKER_VERSION . '.min.css' );
}

# floating scroll (no cdn available)
html_css_link( 'jquery.floatingscroll-' . FLOATING_SCROLL_VERSION . '.min.css' );

# page specific plugin styles

# theme styles
Expand Down Expand Up @@ -332,6 +335,9 @@ function layout_body_javascript() {
html_javascript_link( 'list-' . LISTJS_VERSION . '.min.js' );
}

# floating scroll (no cdn available)
html_javascript_link( 'jquery.floatingscroll-' . FLOATING_SCROLL_VERSION . '.min.js' );

# ace theme scripts
html_javascript_link( 'ace.min.js' );
}
Expand Down
1 change: 1 addition & 0 deletions css/jquery.floatingscroll-3.0.4.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions js/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,12 @@ $(document).ready( function() {
var listobject = new List( this, listoptions );
$(this).data('listobject',listobject).data('listoptions',listoptions).addClass('listjs-table');
});

/**
* This plugin enables an always-visible horizontal scroll bar on tables
* when the actual scroll bar is outside the viewport.
*/
$('.table-responsive').floatingScroll();
});

function setBugLabel() {
Expand Down
6 changes: 6 additions & 0 deletions js/jquery.floatingscroll-3.0.4.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 14 additions & 12 deletions library/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ chart.js | 2.7.3 | unpatched
chartjs-plugin-colorschemes | 0.3.0 | unpatched
typeahead.js | 1.1.1 | unpatched
list.js | 1.5.0 | unpatched
jquery.floatingscroll | 3.0.4 | unpatched


**Notes**
Expand All @@ -37,16 +38,17 @@ list.js | 1.5.0 | unpatched
Upstream projects
-----------------

project | URL
----------------|--------------------------------------------------------------------
rssbuilder | http://code.google.com/p/flaimo-php/
jquery | https://jquery.com/
bootstrap | http://getbootstrap.com/
fontawesome | http://fontawesome.io/
moment.js | https://momentjs.com/ - https://github.com/moment/moment/
datetimepicker | https://github.com/Eonasdan/bootstrap-datetimepicker
dropzone.js | http://www.dropzonejs.com/ - https://github.com/enyo/dropzone
chart.js | http://www.chartjs.org/ - https://github.com/chartjs/Chart.js
project | URL
----------------------------|--------------------------------------------------------------------
rssbuilder | http://code.google.com/p/flaimo-php/
jquery | https://jquery.com/
bootstrap | http://getbootstrap.com/
fontawesome | http://fontawesome.io/
moment.js | https://momentjs.com/ - https://github.com/moment/moment/
datetimepicker | https://github.com/Eonasdan/bootstrap-datetimepicker
dropzone.js | http://www.dropzonejs.com/ - https://github.com/enyo/dropzone
chart.js | http://www.chartjs.org/ - https://github.com/chartjs/Chart.js
chartjs-plugin-colorschemes | https://github.com/nagix/chartjs-plugin-colorschemes/
typeahead.js | https://github.com/twitter/typeahead.js
list.js | http://listjs.com/ - https://github.com/javve/list.js
typeahead.js | https://github.com/twitter/typeahead.js
list.js | http://listjs.com/ - https://github.com/javve/list.js
jquery.floatingscroll | https://github.com/Amphiluke/floating-scroll