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

Feature request: automatically hide editor scrollbars when minimap is visible #479

Closed
int3h opened this issue Apr 29, 2016 · 1 comment
Closed

Comments

@int3h
Copy link

int3h commented Apr 29, 2016

The README.md has a nice suggestion on how to hide Atom's native vertical scrollbar. I have this in my styles.less, since the scrollbars are redundant clutter if minimap is enabled:

atom-text-editor,atom-text-editor::shadow { .vertical-scrollbar { opacity: 0; width: 0; }}

My frustration comes from the fact that I don't always have the minimap visible. I often toggle it off to save horizontal screen space, like when I'm editing two file side-by-side.

When the minimap isn't visible, having the native scrollbars visible is quite useful/necessary. An option to "hide native scrollbars" in minimap's settings would be very handy for this, if it was smart enough to hide/unhide them based on minimap visibility.

I'd also settle with some way to use a CSS selector to apply the opacity: 0; width: 0; style only to .vertical-scrollbar elements inside editors with visible minmaps. I tried and failed to find a way to do this with the current version. (CSS sibling selectors don't work because the editor and it's .vertical-scrollbar come before the minimap element, and sibling selectors can only select elements that occur after another element.)

abe33 added a commit that referenced this issue May 20, 2016
Gives a way to hide the scrollbar only when a minimap is present, as
requested in #479
@abe33
Copy link
Contributor

abe33 commented May 22, 2016

I've added a with-minimap attribute on the text editor hosting a minimap, and updated the README with that, so you should now be able to toggle the scrollbar visibility depending on the presence of a minimap.

@abe33 abe33 closed this as completed May 22, 2016
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

2 participants