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

Custom Title Bar too small after latest update #106528

Closed
Stanzilla opened this issue Sep 12, 2020 · 17 comments · Fixed by #110592
Closed

Custom Title Bar too small after latest update #106528

Stanzilla opened this issue Sep 12, 2020 · 17 comments · Fixed by #110592
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug confirmed Issue has been confirmed by VS Code Team member insiders-released Patch has been released in VS Code Insiders macos-big-sur titlebar VS Code main title bar issues verified Verification succeeded
Milestone

Comments

@Stanzilla
Copy link

Issue Type: Bug

After updating to 1.49 I noticed that the title bar is a little bit squished now.

VS Code version: Code 1.49.0 (e790b93, 2020-09-10T17:39:53.251Z)
OS version: Darwin x64 20.1.0

System Info
Item Value
CPUs Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz (16 x 2300)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
webgl: enabled
webgl2: enabled
Load (avg) 2, 2, 2
Memory (System) 16.00GB (0.24GB free)
Process Argv --crash-reporter-id 94ed4732-f758-4d73-bcc9-de56392deb7e --crash-reporter-id 94ed4732-f758-4d73-bcc9-de56392deb7e
Screen Reader no
VM 0%
Extensions (56)
Extension Author (truncated) Version
tasks act 0.6.2
stylus Ala 0.0.4
TabOut alb 0.2.0
html-end-tag-labels ant 0.3.0
color-info bie 0.5.1
jsdoc-markdown-highlighting bie 0.0.1
markdown-emoji bie 0.0.9
markdown-mermaid bie 1.8.1
markdown-shiki bie 0.1.1
markdown-yaml-preamble bie 0.0.4
better-toml bun 0.3.2
bracket-pair-colorizer-2 Coe 0.2.0
postcss css 1.0.9
vscode-markdownlint Dav 0.36.3
vscode-eslint dba 2.1.8
ejs-vue Dig 0.1.1
javascript-ejs-support Dig 1.3.1
dotfiles-syntax-highlighting dot 0.1.0
gitlens eam 10.2.2
tsl-problem-matcher eam 0.3.0
vscode-html-css ecm 0.2.3
EditorConfig Edi 0.15.1
prettier-vscode esb 5.6.0
shell-format fox 7.0.1
path-autocomplete ion 1.15.0
markdown-extended jeb 1.0.18
vscode-peacock joh 3.8.0
vscode-remark mrm 1.2.1
vscode-scss mrm 0.9.0
csharp ms- 1.23.2
python ms- 2020.8.108011
vscode-pylance ms- 2020.9.4
remote-containers ms- 0.140.1
remote-ssh ms- 0.51.0
remote-ssh-edit ms- 0.51.0
remote-wsl ms- 0.44.5
vscode-remote-extensionpack ms- 0.20.0
powershell ms- 2020.6.0
vetur oct 0.27.2
vscode-ts-config-plugin oct 0.2.0
material-icon-theme PKi 4.3.0
vscode-css-peek pra 4.0.0
qub-xml-vscode qub 1.2.8
vscode-yaml red 0.10.1
rust rus 0.7.8
jinjahtml sam 0.15.0
vscode-wow-toc sta 0.0.2
code-spell-checker str 1.9.0
vscode-stylelint sty 0.85.0
lua sum 0.20.5
shellcheck tim 0.10.1
shell-launcher Tyr 0.4.1
sort-lines Tyr 1.9.0
windows-terminal Tyr 0.6.0
vscode-todo-highlight way 1.0.4
material-theme zhu 3.8.7

package json — vscode-core — Visual Studio Code_2020-09-12_04-11-52

@bpasero bpasero added the titlebar VS Code main title bar issues label Sep 15, 2020
@sbatten
Copy link
Member

sbatten commented Sep 15, 2020

@vainamov this is likely a different issue. please file it separately

@sbatten
Copy link
Member

sbatten commented Sep 15, 2020

@Stanzilla is this 100% repo?

@Stanzilla
Copy link
Author

@sbatten yup

@sbatten
Copy link
Member

sbatten commented Sep 15, 2020

@Stanzilla can you run with --user-data-dir <some empty dir> to try "fresh"

@Stanzilla
Copy link
Author

@sbatten happens there as well

@Stanzilla
Copy link
Author

pretty sure it's only happening on BigSur

@sbatten
Copy link
Member

sbatten commented Oct 16, 2020

@Stanzilla thanks for the update. given the preview nature of Big Sur, I don't have a great way to verify what's going on right now. Is it the case that the expected title bar size is much larger in Big Sur than previous versions? Can you share a side by side of custom vs native titlebar in VS Code?

@sbatten sbatten added the info-needed Issue requires more information from poster label Oct 16, 2020
@deepak1556 deepak1556 added confirmed Issue has been confirmed by VS Code Team member macos-big-sur and removed info-needed Issue requires more information from poster labels Oct 16, 2020
@deepak1556
Copy link
Collaborator

@sbatten seems like the titlebar height has increased in big sur, here are the measurements for native title bar height using accessibility inspector

Catalina

AXWindow pos - x=0, y=23
Content Area - x=0, y=45

Frame height - 22

Big Sur

AXWindow pos - x=1, y=25
Content Area - x=1, y=53

Frame Height - 28

@sbatten sbatten added the bug Issue identified by VS Code Team member as probable bug label Oct 19, 2020
@sbatten sbatten added this to the On Deck milestone Oct 19, 2020
@sbatten
Copy link
Member

sbatten commented Nov 11, 2020

@bpasero I went to update the title bar part but it is now in electron-sandbox and thus cannot access os props except through the native host service which is async. the title bar part would need the os version synchronously. any suggestion?

@bpasero
Copy link
Member

bpasero commented Nov 11, 2020

@sbatten if you must have a property sync, it needs to be added to the IWorkbenchEnvironmentService which is being created with some config properties from the main side. Example:

What exactly do you need?

@sbatten
Copy link
Member

sbatten commented Nov 11, 2020

@bpasero would need os version to adjust the title bar size as mac OS big sur is using a thicker title bar

@bpasero
Copy link
Member

bpasero commented Nov 12, 2020

@sbatten if you can give me exactly the node.js call you need, I can add it. Looks like os.version() was only added in later node.js versions: https://nodejs.org/api/os.html#os_os_version

@sbatten
Copy link
Member

sbatten commented Nov 12, 2020

Looks like release has the right info, https://nodejs.org/api/os.html#os_os_release

bpasero added a commit that referenced this issue Nov 13, 2020
@bpasero
Copy link
Member

bpasero commented Nov 13, 2020

@sbatten added INativeWorkbenchEnvironmentService.os.release

@github-actions
Copy link

github-actions bot commented Dec 2, 2020

This bug has been fixed in to the latest release of VS Code Insiders!

@Stanzilla, you can help us out by confirming things are working as expected in the latest Insiders release. If things look good, please leave a comment with the text /verified to let us know. If not, please ensure you're on version f4187f2 of Insiders (today's or later - you can use Help: About in the command palette to check), and leave a comment letting us know what isn't working as expected.

Happy Coding!

@sbatten
Copy link
Member

sbatten commented Dec 2, 2020

@rebornix I believe can verify

@Stanzilla
Copy link
Author

/verified

Thank you!

@lszomoru lszomoru added verified Verification succeeded and removed z-author-verified labels Dec 4, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Dec 28, 2020
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 confirmed Issue has been confirmed by VS Code Team member insiders-released Patch has been released in VS Code Insiders macos-big-sur titlebar VS Code main title bar issues verified Verification succeeded
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants
@Stanzilla @bpasero @deepak1556 @lszomoru @sbatten @rzhao271 and others