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

Toggled menu bar can make the entire window contents jump up making hit zones move #21889

Closed
newbrain opened this issue Mar 3, 2017 · 8 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug verified Verification succeeded

Comments

@newbrain
Copy link

newbrain commented Mar 3, 2017

Some mouse clicks are ignored when the menu bar is un-hidden (with Alt key).

  • VSCode Version:
    1.9.1, 1.10
  • OS Version:
    Windows 7 Enterprise, Windows 10 Pro

Steps to Reproduce:

  1. Make sure the menu bar is hidden (View->Toggle Menu Bar)
  2. Show the menu bar using Alt key
  3. Select File->Preferences->Color Theme
    Alt: File Icon Theme, or any menu item that will show an in-editor menu
  4. The Color Theme menu is shown
  5. Left click on any theme

Expected result:

  • Selected theme applied
  • Menu dismissed
  • Menu bar hidden

Actual result:

  • The theme is not applied
  • The menu is not dismissed
  • The menu bar becomes hidden again.

Further steps:
6. Left click on any theme again
7. The theme is applied, the menu dismissed and the menu bar hidden, as expected.

@bpasero
Copy link
Member

bpasero commented Mar 3, 2017

@newbrain I see a problem that the entire window moves up when clicking, is that what you are seeing?

untitled

@bpasero bpasero added the info-needed Issue requires more information from poster label Mar 3, 2017
@bpasero bpasero added this to the Backlog milestone Mar 3, 2017
@newbrain
Copy link
Author

newbrain commented Mar 3, 2017

Yes,
as I described the Menu Bar disappears, so the windows content is shifted up.
That's expected when toggling the Menu Bar, but the human interface problem I see is that the left click is not registered.
One needs to click again to operate a selection (or click outside the list to dismiss it).

@bpasero bpasero changed the title Mouse click ignored with un-hidden menu bar Toggled menu bar can make the entire window contents jump up making hit zones move Mar 3, 2017
@bpasero bpasero added bug Issue identified by VS Code Team member as probable bug upstream Issue identified as 'upstream' component related (exists outside of VS Code) and removed info-needed Issue requires more information from poster labels Mar 3, 2017
@bpasero
Copy link
Member

bpasero commented Mar 3, 2017

Thanks, unfortunately I have no real answer how to solve this. Maybe someone does.

@bpasero bpasero added help wanted Issues identified as good community contribution opportunities and removed upstream Issue identified as 'upstream' component related (exists outside of VS Code) labels Mar 3, 2017
@timbanaveen
Copy link

Hi @bpasero

Root cause of this issue is that:

  1. When auto menu hide is true, and when menu is visible clicking (listens on mousedown event) any where will result in hiding of menu.
  2. When we show options to select theme or any other option in tree widget, we register click event as selection, whereas mousedown will move tree widget upward and next mouseup event will have different target then mousedown event. which creates problem.
  3. If we want to solve we can do that by 2 ways, first hide menu on showing tree widget. second listen to mousedown event on tree widget instead of click event.

Please suggest further actions :)

@bpasero
Copy link
Member

bpasero commented Mar 15, 2017

I think this is not limited to quick open but anything in the UI where you can click, no?

@timbanaveen
Copy link

Yes, anything on UI will have same effect as quick open. ie, mousedown -> menubar hiding -> mouseup on different target than mousedown.

@bpasero bpasero added workbench and removed help wanted Issues identified as good community contribution opportunities labels Apr 7, 2017
@eamodio
Copy link
Contributor

eamodio commented Jun 13, 2017

This seems worse lately in that the menubar seems to toggle in unwanted cases. For example, alt+click on a button on the editor/title -- once you release the mouse, the menubar will be shown. It seems to come up on other cases as well (that are escaping me).

Related -- is there a way to change the shortcut key for the menubar toggle?

@bpasero
Copy link
Member

bpasero commented Aug 17, 2018

We will change to custom menus on Windows. For now you can set "window.titleBarStyle": "custom".

@bpasero bpasero closed this as completed Aug 17, 2018
@bpasero bpasero added this to the August 2018 milestone Aug 17, 2018
@bpasero bpasero assigned bpasero and sbatten and unassigned bpasero Aug 17, 2018
@RMacfarlane RMacfarlane added the verified Verification succeeded label Aug 30, 2018
@dbaeumer dbaeumer removed this from the August 2018 milestone Aug 30, 2018
@dbaeumer dbaeumer added this to the September 2018 milestone Aug 30, 2018
@dbaeumer dbaeumer removed the verified Verification succeeded label Aug 30, 2018
@roblourens roblourens added the verified Verification succeeded label Sep 26, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Oct 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

8 participants