You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
clippedBy is a hidden Widget config which tells a floating widget which scrolling elements create the bounding viewport which clips its alignTo target.
This is how tooltips know when their target has been scrolled out of view, and how they align to the visible center of the target.
This should be calculable at alignTo time when the align target is an HTMLElement:
I suggest a new static Scroller method:
/**
* Returns the scrolling ancestors which provide the clipping viewport for the passed element.
*/
static getClippedBy(target) {
const
clippedBy = [],
v = target.ownerDocument.defaultView;
for (let el = target; el != document; el = el.parentElement) {
const s = v.getComputedStyle(el);
if (isScrollable[s.overflowX] || isScrollable[s.overflowY]) {
clippedBy.push(el);
}
}
return clippedBy;
}
The text was updated successfully, but these errors were encountered:
clippedBy
is a hiddenWidget
config which tells a floating widget which scrolling elements create the bounding viewport which clips itsalignTo
target.This is how tooltips know when their target has been scrolled out of view, and how they align to the visible center of the target.
This should be calculable at
alignTo
time when the align target is anHTMLElement:
I suggest a new static
Scroller
method:The text was updated successfully, but these errors were encountered: