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

Inaccessible panel — Off the bottom of the screen #87

Open
cwp-sheal opened this issue Oct 25, 2023 · 4 comments
Open

Inaccessible panel — Off the bottom of the screen #87

cwp-sheal opened this issue Oct 25, 2023 · 4 comments
Labels
bug Something isn't working in progress

Comments

@cwp-sheal
Copy link

Describe the bug
I have a large panel that displays a graph.
I would like to explain this graph to my users.

The issue occurs when I reach the step that wraps my #page-block-graph element.
Due to my screen size, the panel goes off the bottom of the screen and is inaccessible to read.

To Reproduce

  • Create some page items to push our steppable item down to the bottom of the page, with space above it.
  • Create an element with a height of 90vh (I am not using this size, but this helps show the issue at any screen size).
  • Add a step attached to your VH'd element with a title, and desc that spans 4 lines.

Expected behavior
If the space between the current selection, and the bottom of the entire page is less than the height of the details step, it should appear in the other direction (appear above).

I would imagine this might also be a problem at the top, where the logic should be reversed.

Screenshots
image

Desktop (please complete the following information):

  • Chrome & Edge
@cwp-sheal cwp-sheal added the bug Something isn't working label Oct 25, 2023
@rozsazoltan
Copy link
Contributor

rozsazoltan commented Oct 25, 2023

I've also encountered something very similar. Since I had to quickly create a good tutorial with it, the simple solution was to select a smaller element.

However, just yesterday or the day before, I saw a really cool solution from a similar package, so it might be useful here too: If the description and the selected portion don't fit at the same time, the description is overlaid onto the selected portion.

Default

image

Smaller view

image
image

I believe coding this won't take much time. I will also need it for a presentation of an automated software, so if nothing else, I'll definitely give it a try in a pull request.

With video illustration

onboarding-upgrade-example.mp4

I could imagine something similar to what the video will illustrate.

By default, it will place the text box where we requested (we asked for it at the bottom here). If there isn't enough space here, it will relocate it somewhere with available space (in the example, it's only on the left at the beginning).

If there's no other available space for it (as we can see at the end of the video), then we are forced to place the explanatory window on the designated element (not very aesthetically pleasing, but at least it doesn't protrude from the screen, as the error also indicates).

@fatihsolhan
Copy link
Owner

Hi all! Thank you for the suggestion @rozsazoltan, I've checked the Popper library that we use for positioning but couldn't find this kind of feature. Can you let me know which library you used in that video? I'll check and implement similar solution

@rozsazoltan
Copy link
Contributor

Hello @fatihsolhan! I illustrated the necessary development using https://driverjs.com/. Unfortunately, I haven't had time to work on it since.

@ibrahimrehman1
Copy link

ibrahimrehman1 commented Jul 31, 2024

Hi @fatihsolhan Any solution for this yet? I am having a similar issue. Only difference is that it is towards the right instead of bottom. There is a scrollbar on the window but whenever I try to use it, takes me back to the initial position. Can I control the position of each step? This might fix the issue as well. I would set this step to bottom and rest to auto

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working in progress
Projects
None yet
Development

No branches or pull requests

4 participants