Added custom scroll bars and separated the table header from the tables for Sales and the Graphs tables.
This commit is contained in:
7
imports/util/scrollWidth.js
Normal file
7
imports/util/scrollWidth.js
Normal file
@@ -0,0 +1,7 @@
|
||||
var scrollBarWidth = getScrollBarWidth();
|
||||
function getScrollBarWidth() {
|
||||
let $outer = $('<div>').css({visibility: 'hidden', width: 100, overflow: 'scroll'}).appendTo('body'),
|
||||
widthWithScroll = $('<div>').css({width: '100%'}).appendTo($outer).outerWidth();
|
||||
$outer.remove();
|
||||
return 100 - widthWithScroll;
|
||||
}
|
||||
Reference in New Issue
Block a user