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

Allowing menu drop-down from OS #7

Open
silverkorn opened this issue Aug 21, 2017 · 3 comments
Open

Allowing menu drop-down from OS #7

silverkorn opened this issue Aug 21, 2017 · 3 comments

Comments

@silverkorn
Copy link

silverkorn commented Aug 21, 2017

Due to the limitation of this feature to stay within the current window, would it be possible to use the OS menu drop-down list to allow getting outside of if? (Adobe Suite seems to use this kind of behaviour)

Making it as a custom option in the settings would be great!

Thanks!

@sindrets
Copy link
Owner

@silverkorn Electron doesn't allow frameless windows to use the native menu bar. Or more specifically: the menu bar is part of the window frame. I did realise this could pose a problem a while ago, and while attempting to fix it I found out that it wasn't as easy as I first had anticipated: apparently, for some odd reason, CSS doesn't allow

overflow-y: scroll;
overflow-x: visible;

Css automatically reads this as if they were both "scroll". This results in all the menus being encapsulated with a horizontal scrollbar, where you have to scroll right to be able to see nested menus. Setting overflow-x: hidden; makes nested menus completely invisible.

The only solution, I think, is to create a new window through electron. That way menus can be displayed outside of Atom's window. I'll look into that.

@silverkorn
Copy link
Author

Or, at a minimum, create up/down arrows to allows scrolling the menu. This would allow to stay within the same window?

path4546-6

@sindrets
Copy link
Owner

@silverkorn That is a great workaround. Thanks for the illustrative graphics. I'll see what I end up doing, but this might just be it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants