-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Switching the menu bar causes the custom title to be misplaced #13311
Comments
"but cannot completely fix the issue." => could you describe what is missing in the fix? |
The problem occurs when reopening the IDE, an event should be listened to when the menu bar has finished rendering, I don't know if this event exists. 20240125-163258.mp4 |
Hey @fly-bue, I can confirm the main issue (i.e. the incorrect behavior when changing the preference), but cannot reproduce the startup rendering issue: 2024-01-25.13-44-12.mp4Does it occur consistently? I cannot seem to reproduce it at all. |
Hey @msujew,It continues to occur on my computer. And we can find that clientWidth is incorrect. I think it is related to menu bar rendering. The following code can solve my problem. this.windowTitleService.onDidChangeTitle(title => {
animationFrame(10).then(() => this.updateTitle(title));
}); |
@fly-bue Does the fix also work if you run |
Bug Description:
Switching the menu bar causes the custom title to be misplaced.I found that there is no listening for switching menu bar events in the 'electron-menu-contribution.ts' file.I tried to solve this problem (see below), but cannot completely fix the issue.
Steps to Reproduce:
20240125-093408.mp4
Additional Information
The text was updated successfully, but these errors were encountered: