mirror of
https://github.com/tenrok/OverlayScrollbars.git
synced 2026-06-18 21:30:38 +03:00
host without classname & clipping with overflow visible
This commit is contained in:
+1
-1
@@ -52,7 +52,7 @@ const clearBody = () => {
|
||||
|
||||
const getElements = (textarea?: boolean) => {
|
||||
const target = getTarget(textarea);
|
||||
const host = document.querySelector('.os-host')!;
|
||||
const host = document.querySelector('[data-overlayscrollbars]')!;
|
||||
const padding = document.querySelector('.os-padding')!;
|
||||
const viewport = document.querySelector('.os-viewport')!;
|
||||
const content = document.querySelector('.os-content')!;
|
||||
|
||||
+4
@@ -266,11 +266,13 @@ const checkMetrics = async (checkComparison: CheckComparisonObj) => {
|
||||
);
|
||||
|
||||
if (targetMetrics.hasOverflow.x) {
|
||||
/*
|
||||
should.equal(
|
||||
style(targetViewport!, 'overflowX'),
|
||||
'scroll',
|
||||
'Overflow-X should result in scroll.'
|
||||
);
|
||||
*/
|
||||
should.ok(
|
||||
osInstance.state()._overflowAmount.w > 0,
|
||||
'Overflow amount width should be > 0 with overflow.'
|
||||
@@ -289,11 +291,13 @@ const checkMetrics = async (checkComparison: CheckComparisonObj) => {
|
||||
}
|
||||
|
||||
if (targetMetrics.hasOverflow.y) {
|
||||
/*
|
||||
should.equal(
|
||||
style(targetViewport!, 'overflowY'),
|
||||
'scroll',
|
||||
'Overflow-Y should result in scroll.'
|
||||
);
|
||||
*/
|
||||
should.ok(
|
||||
osInstance.state()._overflowAmount.h > 0,
|
||||
'Overflow amount height should be > 0 with overflow.'
|
||||
|
||||
Reference in New Issue
Block a user