atom-title-bar-replacer icon indicating copy to clipboard operation
atom-title-bar-replacer copied to clipboard

Allowing menu drop-down from OS

Open silverkorn opened this issue 8 years ago • 3 comments

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!

silverkorn avatar Aug 21 '17 17:08 silverkorn

@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.

sindrets avatar Aug 22 '17 12:08 sindrets

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

path4546-6

silverkorn avatar Aug 22 '17 18:08 silverkorn

@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.

sindrets avatar Aug 23 '17 01:08 sindrets