vektah / CodeGlance

Intelij IDEA plugin for displaying a code mini-map similar to the one found in Sublime
BSD 2-Clause "Simplified" License
1.06k stars 104 forks source link

Minimap is offset when "Show virtual space at file bottom" is enabled in CLion #185

Open gablank opened 7 years ago

gablank commented 7 years ago

Enabling the "Show virtual space at file bottom" (Settings->Editor->General, under "Virtual Space") makes the "scrollbar" on the minimap show the wrong place. When scrolling to the absolute bottom (with virtual space enabled), the minimap will think that you are at the actual file bottom (not in the virtual space).

Please see the image below for an example.

code_glance_bug_report No code to be seen in the current position of the editor, yet the minimap renders as if there were.

Edit: CodeGlance version: 1.5.2, CLion version: 2017.1.1

ross-g commented 7 years ago

This is also an issue in PyCharm when using the "Virtual Space" setting.

CodeGlance version: 1.5.2, CLion version: 2017.1.2

jamieweavis commented 7 years ago

Seeing the same issue in PhpStorm 2017.1.4 & CodeGlance 1.5.2

linaori commented 7 years ago

Having this issue in phpstorm as well

soerson commented 7 years ago

Noticed the same issue. Minimap shows wrong position across all scroll, not only in the bottom. If disable 'virtual space' the minimap works right

ethanwu10 commented 7 years ago

Can confirm with IDEA 2017.1.3 / CodeGlance 1.5.2 - this seems to be generic to the Jetbrains platform

ddnexus commented 6 years ago

@ROBsoer It is slightly offset also without the virtual space option , just less noticeable offset. (RubyMine 2017.3 - Build #RM-173.3727.77, built on November 21, 2017)

QuestofIranon commented 6 years ago

I also noticed this on IDEA 2017.2.3

sywesk commented 6 years ago

I confirm the problem on IDEA 2017.3

AlexEshoo commented 6 years ago

Have the same problem please fix!

benjamw commented 6 years ago

Having the same problem, tried turning off "Show virtual space at file bottom" and the issue was reduced, but still visible as PhpStorm 2018.1.1 still puts a small amount of whitespace (~5 lines) at the bottom of the screen as @ddnexus also pointed out.

bamapookie commented 6 years ago

This is still occurring in IntelliJ 2018.1.3 EAP, CodeGlance 1.5.4

Echoing what @benjamw said, the offset is less pronounced, but still visible with "Show virtual space at the bottom" disabled. It appears that in both cases, CodeGlance does not take the actual viewport size into account when calculating the highlight.

mike-czarnota commented 5 years ago

Is anything going with these issues? It stil occurs :(

zl939144892 commented 5 years ago

Have the same problem please fix

Andret2344 commented 5 years ago

https://github.com/mgziminsky/Minimap-for-Jetbrains/commit/a1b834de9f1b9d5206628bdf5fcd409abd335181 didn't actually resolved the issue...

Dom4n commented 4 years ago

Still occurs in 2020.01 (plugin version 1.5.4)

BenceSzalai commented 3 years ago

Replaced the CodeGlance plugin with the latest Minimap-for-Jetbrains from here, and it fixed the issue in PhpStorm 2020.3.2 (Build #PS-203.7148.74), so probably it would for other IntelliJ IDEs as well. Try it folks, CodeGlance seems to be abandoned.

sideeffffect commented 3 years ago

It seems like Minimap-for-Jetbrains isn't available from the JetBrains plugin repository. Are you planning to add it there any time soon @mgziminsky ?

BenceSzalai commented 3 years ago

Just for the record, it can be downloaded and installed from the local filesystem anyway, independently from the plugin repository. Indeed, having it in there would be better.

mgziminsky commented 3 years ago

I considered publishing it, but probably won't, at least not for now since I haven't been using Jetbrains IDEs much lately and am not actively maintaining my version since it works "good enough" for my needs for now. Sorry, but publishing would just require more commitment to the project than i'm interested in giving it.