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

Minimap hides characters on long lines #322

Closed
darakian opened this issue Apr 20, 2015 · 6 comments
Closed

Minimap hides characters on long lines #322

darakian opened this issue Apr 20, 2015 · 6 comments

Comments

@darakian
Copy link

When I type out a long line of text the minimap seems to hide a character or two.
pic here
http://imgur.com/DyDXwGU

@abe33
Copy link
Contributor

abe33 commented Apr 22, 2015

This is the intended behavior, the minimap isn't an overlay above the text editor so text won't flow behind it. But the editor will allow you to scroll horizontally (hence the scrollbar at the bottom of the editor).

@abe33 abe33 closed this as completed Apr 22, 2015
@darakian
Copy link
Author

Is there an easy way to change this behavior?

@abe33
Copy link
Contributor

abe33 commented Apr 30, 2015

Hmm, I think the following rule in your stylesheet should do the trick:

atom-text-editor::shadow atom-text-editor-minimap {
  position: absolute;
  right: 0;
}

At least on my config it works as expected.

I'll consider adding a setting for that given that the solution is simpler that what I thought it'll be at first.

@darakian
Copy link
Author

That's not quite the behavior I was hoping for, but I think it is at least better. Ideally I'd like the page to end at the edge of the minimap. Basically I want the sublime text minimap behavior. Many thanks even for this change :)

@abe33
Copy link
Contributor

abe33 commented May 5, 2015

It behaves exactly as sublime on this, it doesn't not overlay above the code, so if the code is longer that the available space it'll be hidden and available through horizontal scrolling.
If some characters are still hidden even when you have scrolled the editor horizontally all the way to the right, then it's an editor issue (like with #317 where the problem was that the presenter was considering that all the space not used by the editor was the basically the gutter space, which is not true when the minimap is present). We do nothing fancy at the editor level, just adding an element in the editor flex box flow.

@darakian
Copy link
Author

darakian commented May 7, 2015

Odd, I get the text intersecting with the minimap.
ex:
http://imgur.com/JOlIt14
Where sublime wraps the text down to the next line.

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