mirror of
https://github.com/DataTables/DataTables.git
synced 2025-03-15 16:29:16 +01:00
Fix: The scrollbar width calculation could sometimes be wrong when trying to calculate the size of the bar due to CSS styles. The inner P element could be given padding for example which would result in the scrollbar width being wrong and thus any calculations later on witht he scrollbar width would be incorrect.
This commit is contained in:
parent
1c8f1e3465
commit
88932adb92
2
media/js/jquery.dataTables.js
vendored
2
media/js/jquery.dataTables.js
vendored
@ -6512,6 +6512,7 @@
|
|||||||
var style = inner.style;
|
var style = inner.style;
|
||||||
style.width = "100%";
|
style.width = "100%";
|
||||||
style.height = "200px";
|
style.height = "200px";
|
||||||
|
style.padding = "0px";
|
||||||
|
|
||||||
var outer = document.createElement('div');
|
var outer = document.createElement('div');
|
||||||
style = outer.style;
|
style = outer.style;
|
||||||
@ -6521,6 +6522,7 @@
|
|||||||
style.visibility = "hidden";
|
style.visibility = "hidden";
|
||||||
style.width = "200px";
|
style.width = "200px";
|
||||||
style.height = "150px";
|
style.height = "150px";
|
||||||
|
style.padding = "0px";
|
||||||
style.overflow = "hidden";
|
style.overflow = "hidden";
|
||||||
outer.appendChild(inner);
|
outer.appendChild(inner);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user