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

Fix for content shift (issue #59) #62

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SevilleCode
Copy link

I took a look at the problem described in issue #59 and think I found the issue. It appears to be related to the white-space: nowrap value for the .nav selector. I have disabled that value for now, and so far the problem seems to be resolved. I disabled it instead of outright removing it in case it needs to be re-enabled in the future.

I took a look at the problem described in issue themesberg#59 and think I found the issue. It appears to be related to the white-space: nowrap value. I have disabled that value for now, and so far the problem seems to be resolved. If needed in the future, it can be re-enabled.
@zoltanszogyenyi
Copy link
Member

zoltanszogyenyi commented Oct 10, 2021

Hey @SevilleCode,

Thanks for the PR.

Is this tested with the pro version? The bug, as far as I'm concerned, only happens for the pro version where the sidebar can be expanded.

Thanks,
Zoltan

@PerryCodes can you check this fix out in your environment, please?

@PerryCodes
Copy link

PerryCodes commented Oct 10, 2021 via email

@zoltanszogyenyi
Copy link
Member

@cordosvictor can you please check this out? Thanks!

@PerryCodes
Copy link

PerryCodes commented Oct 10, 2021

I figured out one of the issues...

In the 'html&css' folder included with the current 1.4.1 PRO download, all the JavaScript is located in: './assets/js/volt.js' whereas doing a build with Gulp results in the folder './js/' with JavaScript being split between the following three files:

  • sidebar.js
  • sidebar-toggle.js
  • volt.js

I've also determined that this "content shifting" only happens in Chromium-based browsers. Firefox doesn't have any content shifting, however Firefox does flash a system scrollbar in the sidenav every time a selection is made... That behavior doesn't happen in Chromium browsers with the contents of 'html&css' downloaded with 1.4.1. But as I mention above, rebuilding with Gulp gives me a copy that does flash the system scrollbar in the sidenav regardless of browser.

@SevilleCode
Copy link
Author

SevilleCode commented Oct 10, 2021

@zoltanszogyenyi I did not test it in the pro version. Since I was encountering the problem in the free version, I tackled it there. Disabling the white-space: nowrap value fixed the issue for me, so I thought it might fix it for everyone else. But like @PerryCodes said, the problem does seem to only be present in Chromium browsers.

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

Successfully merging this pull request may close these issues.

None yet

3 participants