-
Notifications
You must be signed in to change notification settings - Fork 130
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 / Split View issue #358
Comments
Interesting, I never seen that happens (I also use Markdown Preview a lot), it looks like the minimap position setting was not changed in the process, can you confirm it? The value for |
In the config file the value for minimap.displayMinimapOnLeft is omitted (so I guess it defaults to 'false'). I couldn't find a |
Can you tell me what is the position of the |
This is really weird, the minimap is inserted at the wrong place, but I can't figure why nobody else has reported the same behavior. If you can try something in the console for me when it occurs: e = atom.workspace.getActiveTextEditor()
minimap = atom.packages.getLoadedPackage('minimap').mainModule
m = minimap.minimapForEditor(e)
v = atom.views.getView(m)
v.displayMinimapOnLeft The last line should return false if the minimap is in sync with the config, if it's true then that explain why the minimap swapped place, but the question would then be why this value was changed in the process. When I test that myself with some debug code in the attach and detach hooks of the minimap element, I only get one attach call when I split a pane, which should indicate that the element is not removed from the text editor. By curiosity, do you get the same result with If it don't change position it could indicate than the content of the text editor is destroyed and then recreated after the minimap. But you'll be the only person I know that experience that when splitting panes. |
Just tested it: If I use the "Left" option both views will have the minimap on the left side. This seems to be a problem exclusively with the "right" position.
It returns Not sure if this is relevant, but the wrongly placed minimap will only update it's position after I actually put it on the side it is on ... Let me try to explain it a bit better:
|
I believe the patch in v4.11.2 should solve this issue, the minimap no longer rely on the node position for the layout, but instead it uses the |
Just downloaded 4.11.2 and everything works as expected! Cool, that you found a fix for this 👍 |
Hello,
I wasn't sure wether to report this bug here or in the markdown-preview repository. When the minimap is on the right and I toggle the markdown preview, the minimap is automatically transferred to the left side of the screen.
(Had to toggle the tree-view to make the minimap options visible. As you can see it still thinks it is on the right side of the screen and the option panel is displayed offscreen)
When I untoggle the markdown preview, the minimap is not restored to its original place.
Best wishes
Robert
The text was updated successfully, but these errors were encountered: