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

Sidebar content overflows into next element #702

Open
Krismix1 opened this issue Dec 5, 2021 · 6 comments
Open

Sidebar content overflows into next element #702

Krismix1 opened this issue Dec 5, 2021 · 6 comments
Assignees
Labels
🐛 bug Defect / Bug

Comments

@Krismix1
Copy link

Krismix1 commented Dec 5, 2021

Describe the bug
The content of the sidebar overflows. See attached picture.

To Reproduce
Steps to reproduce the behaviour:

  1. Go to a page that has the sidebar + search input, e.g. https://cucumber.io/docs/gherkin/reference/
  2. Wait for the search input to load
  3. See error

Expected behaviour
The content to not overflow.

Screenshots
image

Desktop (please complete the following information):

  • OS: Linux
  • Browser: Firefox Developer Edition
  • Version: 95.0b12 (64-bit)
    I can also reproduce it in Chromium Version 96.0.4664.45 (Official Build) and Chrome Version 96.0.4664.45, both with an out-of-the-box setup.

Aditional context
It would seem the initial height calculation does not take into account the height of the search input and it is not recalculated when the input loads.
If the open or resize the browser devtools, or resize the browser window, the height of the scrollable content is adjusted and the issue is no longer visible.

@aurelien-reeves
Copy link
Contributor

Thanks for the report :)

@aurelien-reeves
Copy link
Contributor

@declark this seems to be related to the smartbear stylesheet.
Could you please take a look?

@10xtechie
Copy link
Member

@aurelien-reeves ,
I have found the same issue on Chrome - version 102.0.5005.61 (Official Build) (x86_64) on Mac OS - at https://cucumber.io/docs/guides/10-minute-tutorial/

side-nav-bar

I have found that inline css rule are injected by the following codes.

_sidebar.height(winHeight - menuHeight).width(_sidebar.parent().width());
$(sidebarClass + "-fixed").height(winHeight - menuHeight).width(_sidebar.parent().width());
_sidebarNav.height(winHeight - menuHeight - _panelBottom - _panelSearch - 20).width(_sidebar.parent().width());

Also, here is the screenshot of Chrome's dev-tool.

inline-css

I believe the above codes are the root cause of this issue. Please let me know what you think :)

@aurelien-reeves
Copy link
Contributor

Thanks

Indeed, that looks related.

@declark do you know who at smartbear could help with this?

@mlvandijk mlvandijk added the 🐛 bug Defect / Bug label Jan 24, 2023
@mlvandijk
Copy link
Member

@mattwynne Is there anyone at the Smartbear team that could pick this up?

@mattwynne
Copy link
Member

@mattwynne Is there anyone at the Smartbear team that could pick this up?

I've assigned it to Doug Clarke, and I will ping him in Slack too to make sure it's come to his attention.

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

No branches or pull requests

6 participants