Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stocks sample app: Scrolling and then dragging the confirmation dialog offsets its position #106

Closed
marin-bratanov opened this issue Jul 8, 2021 · 1 comment
Assignees

Comments

@marin-bratanov
Copy link
Contributor

Repro:

  1. Click the Delete button on the main page https://demos.telerik.com/blazor-financial-portfolio/
  2. scroll the page down
  3. try dragging the confirmation window

Actual:
It moves to a wrong position, potentially outside of the viewport.

Expected:
It does not move away from the mouse

Root cause:
The layout of the app produces scrollbars on the parent element of the popup and focusing and moving it causes issues with calculations when those elements are scrolled. In Blazor there is a limit on how far up the DOM you can render popup elements and so you cannot fully take into account all possible CSS and scrolling settings.
You can read more about this here: https://docs.telerik.com/blazor-ui/knowledge-base/common-popup-causes-scroll-on-show and the fix would be similar to one proposed in the linked sample project - ensure that scrollbars are in the content, below the TelerikRootComponent and higher level elements have height:100% and overflow:hidden. In this app, the fix is not that trivial because it has a little more complex layout, responsive layout and a header, however.

Also related and similar in root cause to #104

@xristianstefanov
Copy link
Contributor

I'm closing this issue here as it is no longer reproduces due to the above-mentioned item.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants