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
Double-clicking on the title bar to zoom the window does not work on macOS #150511
Comments
steps imply native titlebar is failing |
Yes, only with |
I do not see a bug in your case, the window seems to zoom just fine? |
In previous versions, double-clicking on the title bar would maximize or restore the window depending on the size of the current window(This is also the behavior of other applications on mac.). The current behavior of Kapture.2022-05-28.at.13.11.44.mp4 |
Oh yes you are right, other apps maximize and restore, but maybe this depends on how macOS thinks what the right bounds are for the window to show all contents? Maybe for the VS Code window the optimal size is always the maximized? Can you pin point a version where this used to work? |
I don't think so. Even in the current version,
It occasionally works fine for the reasons mentioned above, so I didn't notice the issue until recently. I'm sorry I can't give an exact version that works normal. |
@bpasero Kapture.2022-06-12.at.15.38.39.mp4 |
Can you try to reproduce with our nightly insider builds? You can give our preview releases a try from: https://code.visualstudio.com/insiders/ |
The problem still exists., and there is crashing issue: When I exit VSCode from the maximized window, if the VSCode is not restored to the maximum window when I reopen it, but initialized to a small window, it causes a crash( Kapture.2022-06-12.at.17.09.46.mp4 |
Can you please follow the steps in https://github.com/Microsoft/vscode/wiki/Native-Crash-Issues to get at more details around the crash and attach the result here? Thanks! |
At the 13s of the video, the program crashed and exited, not me manually. Kapture.2022-06-12.at.21.54.52.mp4 |
When the stable version of the VSCode crashes(at 16~17s), again, no Kapture.2022-06-12.at.22.01.24.mp4 |
Can you try to run |
After several attempts, neither |
Ok then can you find the setting you have set that causes this? Running from the separate user data dir, all settings are default, so add them back 1 by 1. |
I tried. It's kind of hard. Also, this seems to off topic, the topic of this issue is that double-clicking the title does not zoom properly. The "needs more info" label is no longer applicable here. |
Can you then maybe create a new issue for the crash specifically? As for this issue, I can reproduce, and wonder if electron/electron#34473 is related. |
No problem, I'll create a new issue for this when I find out what settings are causing the crash.
From the description, it seems somewhat related? But I'm not sure yet, the context gives too little information. |
Hm, now I am having a hard time to reproduce, got it once. I cannot really distill exact steps. Tried a lot of things, all with native title. Does it even crash for you when you double click title when no editor is opened? |
I've only been able to reproduce the issue with the stable version, provided that the expansions and configurations used on a daily basis are enabled. The issue cannot be reproduced by starting with the The insider version can't be reproduced now either, no matter how it operates it doesn't cause a crash, there is no updated version, and no expansions or configurations are installed.
Sorry, I didn't understand your point here. |
So the issue is resolved in insiders with the same settings as stable? |
No.
I installed the Insiders version according to your reply. From the time I installed it to the time I noticed the crash, I don't have any additional configuration or any extensions installed. In the previous reply, I also posted the video which shows how it crashes. Today, I didn't update it or do any other configuration, but found that I couldn't get it to crash as I did yesterday. I don't think it's been solved, we haven't done anything, it remains to be seen. |
Ok sorry, I have no clue or know how to help further 🤷 |
Summary.
|
@liby in the recording provided #150511 (comment) and #150511 (comment), you would need to adjust the way application is launched to get crash logs,
Can you try with these steps corrected and see if the crash logs are created. Thanks! As for the original issue, I am little confused based on the thread above, #150511 (comment) suggests that zoom does not work with |
About the crash. I've tried this many times over the last six or seven hours, but now I can't reproduce issue. Both the stable and internal versions have been tried, whether it is launch from spotlight or launched from terminal. It's so weird. I haven't updated the version or changed any configuration since the crash was discovered. But just can't reproduce the issue, but I'll follow up on this and create a ticket as soon as I have a log entry.
When VSCode is first installed and started, the zoom in/out is normal. In the future, if you exit VSCode in a non-maximized window state, the zoom in/out will also work normal the next time you start VSCode. So, I'd say it works fine occasionally. |
All of this observation is for custom titlebar and not native titlebar, is that correct ? |
Yep |
Hey @deepak1556, this issue might need further attention. @liby, you can help us out by closing this issue if the problem no longer exists, or adding more information. |
This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines. Happy Coding! |
Issue Type: Bug
In macOS, double click on the title bar of the application, unable to zoom window.
Similar issue: #57318, #55421
Setting
window.titleBarStyle
tocustom
will quickly solve the issue.VS Code version: Code 1.67.2 (c3511e6, 2022-05-17T18:20:57.384Z)
OS version: Darwin x64 21.5.0
Restricted Mode: No
System Info
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
Extensions (14)
A/B Experiments
The text was updated successfully, but these errors were encountered: