Skip to content

[New Scrollbars]: Vertical scrolling not applied when ShadowDOM content grows #2956

Description

@siarheiyelin

UUI 6.3.3

Steps to Reproduce

  1. Open https://uui.epam.com/docExample?theme=electric&examplePath=scrollBars%2FWithShadows
  2. Open Chrome Dev tools and:
// Change content from scrollable area, so that it does not scroll
document.querySelector('[data-overlayscrollbars-contents]').innerHTML = '<div id="demo-bug" />';

// Add some shadow DOM content big enough to cause vertical scroll
const container = document.getElementById('demo-bug');
container.attachShadow({ mode: "open" });
container.shadowRoot.innerHTML = '<div style="background: linear-gradient(to bottom, aquamarine, #fff); height:5000px" />';

Actual result

No vertical scroll

Expected result

Vertical scroll appears

Environment

  • UUI version: 6.3.3
  • Browser name: Chrome
  • Operating System: Windows 11 Enterprise

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Fields

No fields configured for issues without a type.

Projects

Status
Closed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions