question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`sticky-sidebar` disappears when expanding fields of new Projects

See original GitHub issue

Description

I am using Refined GitHub in a repository where issues get a lot of labels, and we use multiple GitHub projects (both old and new) - so our sidebars are pretty looooong. As the issues themselves are also long with many comments, sticky-sidebar is absolutely necessary to stay sane and be able to access labels and projects all the time. Thank you for that, as usual!

Unfortunately recently I noticed that when I expand one of the “new projects’” widgets (they can have multiple “fields” that all can have an input field or dropdown etc) the stickyness breaks and the whole sidebar disappears to the top, to its usual static location 😿 I have to scroll back up to edit the fields, and only a reload makes the sidebar sticky again - until the next edit.

After some experimentation I could figure out that a pretty specific situation needs to happen - but of course our repository consistently does that. So I created a reproduction issue: https://github.com/janpio/refined-github-sticky-sidebar-projects-bug/issues/1

If I am understanding the problem correctly, the sidebar (via labels and projects and their fields) needs to be taller than the “viewport” where the sidebar could be displayed. I left instructions below that allow me to persistently reproduce this in an incognito window with only Refined GitHub enabled.

Here are also some screenshots:

Before, working as expected: image

After clicking + 7 more on the sidebar - no more sticky sidebar: image

Ahhh, here it is, with the fields expanded: image

How to replicate the issue

Go to https://github.com/janpio/refined-github-sticky-sidebar-projects-bug/issues/1, scroll to the end of the page, make sure your browser window is just tall enough to display the current right hand sidebar (with the projects), click on + 7 more in the Project “widget” on the right side - and then observe the “sticky” sidebar disappear to the top.

Extension version

22.8.23

Browser(s) used

Chrome Version 104.0.5112.81 (Official Build) (64-bit)

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:14 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
fregantecommented, Sep 11, 2022

Update: I tried adding a scrollbar as a fallback and it failed. The scrollbar effectively triggers “overflow: hidden” so the popups in the sidebar (in red) are cut off:

Screen Shot 6
1reaction
fregantecommented, Sep 2, 2022

Yeah, ResizeObserver looks at the size of the element on the page and triggers the calculation to determine whether the sidebar should be stuck.

If we disable it, it won’t suddenly become unstuck like in your demo screenshots.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Floating sticky sidebar is not working as intended
The sidebar seems to be fixed, but only whenever we scroll right to the footer. I would like the side-nav to be scrolled...
Read more >
Product editor sidebar disappears while scrolling - page 2
Starting with the product tags or image the sidebar gets sticky and floats when scrolling down, but disappears after that when scrolling up,...
Read more >
Make sidebar in MRs sticky (!88165) · Merge requests - GitLab
One way to solve that could be to make the sidebar sticky, so I explored what that would look like in this MR....
Read more >
The 3 Golden Rules of Sticky Menu Navigation - Contentsquare
Here's your guide to sticky menus and how to figure out if a sticky navbar is right for your digital website experience: What...
Read more >
How to Remove the Sidebar in WordPress (4 Methods) - Kinsta
This is because the styling doesn't specify that the page should use a full-width layout, even though the sidebar is gone. You'll need...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found