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

Remove collapse of already-open menu. #800

Merged
merged 1 commit into from
Jan 20, 2015

Conversation

schveiguy
Copy link
Member

When you expand one submenu and it collapses another, it can have particularly annoying results. For example, when in the standard library docs, and you want to expand multiple sections (std and core), you cannot. In addition, the following sequence is quite annoying:

  1. expand std.
  2. expand core.

So when you expand std, it has many entries, scrolling core off the screen. You must scroll down to reach the core menu. As soon as you open core, it collapses std. core has very few entries in it, so the overall size shrinks tremendously. This makes the menu suck itself up off the screen, and now you have to scroll up to get at the submenus.

This fix simply avoids collapsing the already-open menu.

@MartinNowak
Copy link
Member

👍

@CyberShadow
Copy link
Member

FWIW, this turns the accordion menu into a tree-style menu, but I agree that in our case it's a good change.

CyberShadow added a commit that referenced this pull request Jan 20, 2015
Remove collapse of already-open menu.
@CyberShadow CyberShadow merged commit 9fea5a8 into dlang:master Jan 20, 2015
@andralex
Copy link
Member

Conspiracy! :) OK, will push the new site soon.

@CyberShadow
Copy link
Member

There is now a visual bug: when you expand a second submenu, the previously open one's "minus" sign changes to a "plus" sign, even though it's still expanded.

@schveiguy
Copy link
Member Author

There is now a visual bug:

I'll fix it.

@MartinNowak
Copy link
Member

this turns the accordion menu into a tree-style menu

Which might even be a better match for displaying packages.

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

Successfully merging this pull request may close these issues.

4 participants