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

Issue with sidebar resizing: Strange gap + sidebar shrinks on page refresh #170

Open
CodeDook opened this issue Dec 18, 2024 · 0 comments
Open

Comments

@CodeDook
Copy link

I am experiencing a strange issue where there's a weird gap between the right edge of the sidebar and the page content, but whenever I resize the sidebar, that gap disappears and upon refreshing the page, the sidebar has shrunk slightly by itself and the gap returns. It is more pronounced on mobile but happens on both desktop and mobile.

Screenshot 2024-12-18 122342
Screenshot 2024-12-18 122401

I'm using the latest Doxygen v1.12.0 and Doxygen Awesome v2.3.4 in Base theme. I have tested disabling all the extensions but this doesn't change anything.

I've done some investigation of my own and I think I've found the issue. In resize.js, which I think is bundled with Doxygen and not Doxygen Awesome(?), there is a variable named barWidth. For whatever reason, this is subtracted from the actual sidebar width when calculating the width of the content and also the value saved to the cookie, thus causing both issues as the actual width and the width JavaScript is using differ. Setting barWidth to 0 solves the problem. Unfortunately, since this script is supplied with Doxygen, any changes are erased when running Doxygen again.

Screenshot 2024-12-18 123641
Screenshot 2024-12-18 123711
Screenshot 2024-12-18 123736

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