-
Notifications
You must be signed in to change notification settings - Fork 2
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
Position bar in default placement is offset to left, except for admin users #44
Comments
Thanks for your report – this issue looks like a tricky one, no idea so far why it's happening! I noticed one interesting thing, though: If you're not logged in to your Backdrop site as administrator and inspect the element These differences aren't visible if you are logged in as admin to the Backdrop site. So, the |
Testing the issue, I noticed that logging in fixes it only for users with the administrator role. If you log in as an editor, the strange position behavior continues. I'm curious if we can boil this down to a particular permission or something else more specific than the role. |
Thanks for investigating @olafgrabienski - this is curious - I didn't think to test with non-admin user. |
The permission appears to be "Administer Layouts" 😕 - very confusing |
Yep, just noticed this myself. To be more precise, |
I'd added that previously and nothing happened, but guess that's because the permission to do anything wasn't there so no links were being invoked. |
Looks to be the .contextual-links-region {
outline: none;
position: relative;
} |
Yes ... without the contextual links region the Tocbot block is |
Adding .js-toc-block {
position: relative;
} into |
Fixes Issue #44 position bar offset
@yorkshire-pudding Thanks again, I've merged your PR. |
Steps to reproduce
Expected results
Vertical position bar runs directly below the left hand side of the first letter of title (e.g. Contents)
Same position for logged in and logged out
When scroll down, then stays in same place
Actual result

For logged out users the bar is offset to left until the block goes 'fixed' position then it goes to the right place
For logged in users, the bar is in the right place in the default position and when the block goes 'fixed' position

Attempts to deduce cause
The text was updated successfully, but these errors were encountered: