Skip to content

Leaving Full Screen or Zen Mode leads to wrong window dimensions #83456

Closed

Description

Issue Type: Bug

If I enter Full Screen or Zen mode when VS Code window was maximized then exit - it will have dimensions larges than monitor.

Happens only with "window.titleBarStyle": "custom" (default value) and doesn't depend on window.zoomLevel.

Steps to preroduce:

  1. Maximize VS Code window. Screenshot

  2. Press F11 or Ctrl+K Z twice to enter/exit full screen.

  3. Window elements are now closer to screen edge or cropped because window become larger (its edges can be seen on other monitors). Screenshot

Clicking on Restore Down and then Maximize fixes window dimensions.

Moreover something goes wrong with Maximize/Restore down button:
1. After exiting Full Screen click on Restore down button
2. Button doesn't change to Maximize. Screenshot
3. Click Maximize and then Restore Down to see that button changes to proper icon. Screenshot
Maximize/Restore down button issue is tracked in #82384

VS Code version: Code - Insiders 1.40.0-insider (33cc09d, 2019-10-28T11:50:41.596Z)
OS version: Windows_NT x64 10.0.18362

System Info
Item Value
CPUs Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz (12 x 3192)
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: disabled_off
protected_video_decode: enabled
rasterization: enabled
skia_renderer: disabled_off
surface_control: disabled_off
surface_synchronization: enabled_on
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 31.72GB (15.05GB free)
Process Argv
Screen Reader no
VM 0%
Extensions: none

Activity

  1. vscodebot commented on Oct 28, 2019

    @vscodebot

    (Experimental duplicate detection)
    Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

  2. bpasero commented on Oct 29, 2019

    @bpasero
    Contributor

    Seems like another issue with custom titlebar. I think this one might have been reported already.

  3. IllusionMH commented on Oct 29, 2019

    @IllusionMH
    ContributorAuthor

    Checked with VSCode 1.39 (zip) and I cannot reproduce issue with window sizing (except it was always 1px wider than monitor when maximized, but works properly with 1.40-insiders)

    So I think it is most likely related to Electron 6.x update and I haven't found similar issues.

  4. bpasero commented on Oct 29, 2019

    @bpasero
    Contributor
  5. added
    electron
    on Oct 29, 2019
  6. bpasero commented on Nov 11, 2019

    @bpasero
    Contributor

    Possibly related to #84343 and/or #81102

  7. added
    confirmed
    on Nov 13, 2019
  8. added
    candidate
    on Nov 14, 2019
  9. deepak1556 commented on Nov 19, 2019

    @deepak1556
    Collaborator

    electron/electron#21164 will fix this issue

  10. IllusionMH commented on Nov 21, 2019

    @IllusionMH
    ContributorAuthor

    Yay! Fixed in Insiders build!

    However issue mentioned in #83456 (comment) returned

  11. deepak1556 commented on Nov 21, 2019

    @deepak1556
    Collaborator

    Fixed with #85266

  12. locked and limited conversation to collaborators on Jan 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

candidateconfirmedelectronverified

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions