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

Showcase _scrollIntoView should ensure the showcase is visible, not its child #478

Open
mrsvan opened this issue Sep 29, 2024 · 0 comments

Comments

@mrsvan
Copy link

mrsvan commented Sep 29, 2024

Describe the bug
When you wrap a tall widget in a "Showcase", with ShowCaseWidget(autoPlay: true), the showcase is not visible after the autoscroll.

To Reproduce
Steps to reproduce the behavior:

  1. Wrap a widget in "Showcase", where the widget is taller than the current viewport;
  2. Warap the Showcase in a ShowCaseWidget, with autoPlay: true;
  3. When the showcase is triggered, the child widget will be scrolled into view (in the middle of the view)
  4. The showcase itself is not visible, so the user does not understand what is being showcased;

Expected behavior
When the showcase is triggered, the explanation should scroll into view, as high up as possible in the viewport so that the child widget that is being showcased is also visible.

It is more important to see the entire showcase bubble, even if the child widget is only partially visible.

Desktop (please complete the following information):

  • OS: all
  • Browser all
  • Version 3.0.0

Smartphone (please complete the following information):

  • Device: all
  • OS: all
  • Browser all
  • Version 3.0.0

Additional context
The current Showcase _scrollIntoView, uses alignment: 0.5, which forces the showcase to be scrolled out of view.

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

1 participant