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

strange bar appear while maximized #8384

Closed
epiciskandar opened this issue Nov 24, 2020 · 13 comments
Closed

strange bar appear while maximized #8384

epiciskandar opened this issue Nov 24, 2020 · 13 comments
Labels
Area-User Interface Issues pertaining to the user interface of the Console or Terminal Issue-Bug It either shouldn't be doing this or needs an investigation. Priority-3 A description (P3) Product-Terminal The new Windows Terminal. Resolution-Fix-Available It's available in an Insiders build or a release

Comments

@epiciskandar
Copy link

Environment

Windows build number: Microsoft Windows [Version 10.0.19042.630] 
Windows Terminal version (if applicable): 1.4.3243.0

Any other software?

Steps to reproduce

initially, the Windows Taskbar is normally at the top, and always showing

  1. open Windows Terminal
  2. maximized window
  3. trigger fullscreen mode with F11
  4. go to Windows Taskbar Settings and trigger on Automatically hide the taskbar in desktop mode
  5. go back to Terminal and press F11 to exit fullscreen mode
  6. a strange bar appears up to the title area, see this image:
    zoom in and look at the area above Terminal and close button
    image
    (note that Windows Taskbar above already hided)
    the bar has three tiny buttons: minimize, maximize and close, all are works.

sometimes after moving Terminal window or exit maximized status, that bar will disappear, but sometimes not.
if that bar does not disappear, Terminal cannot maximized to all area while the Windows Taskbar in auto hide mode

Expected behavior

no strange bar appear, and maximize the window properly

Actual behavior

sometimes cannot maximized Terminal with Taskbar autohided

@ghost ghost added Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements labels Nov 24, 2020
@Don-Vito
Copy link
Contributor

Don-Vito commented Nov 24, 2020

Wow.. that is a weird one 😄 . Does not reproduce for me: instead I simply have an used area under the terminal window - where the taskbar used to reside. Few questions:

  1. Is it 100% reproducible for you or happens occasionally?
  2. To reproduce the issue do you wait for taskbar to disappear before exiting the fullscreen? Trying understand if there is a timing issue.
  3. Any details about your setup: how many monitors, with what scaling? Trying to understand if there is a scaling issue.

@epiciskandar
Copy link
Author

epiciskandar commented Nov 24, 2020

Is it 100% reproducible for you or happens occasionally?

yes, it is 100% reproduce.

do you wait for taskbar to disappear before exiting the fullscreen?

yes, no time racing.everything happens flex

how many monitors, with what scaling?

two monitor, with same 100% scaling, resolution 1920*1080.
this happens on both monitor, but firstly I found it on the secondary one, then reproduce this on primary one too.
I have another PC with only one monitor, with same Windows version, but the Terminal is preview ver(1.5.3242.0). and same thing can be reproduced.

@epiciskandar
Copy link
Author

I remembered one step not listed, between step 2 and step 3, or say, before fullscreening Terminal, you need to open "Taskbar Settings" first.
after Terminal go to fullscreen, switch to that setting window by clicking Alt + Tab

@epiciskandar
Copy link
Author

Does not reproduce for me: instead I simply have an used area under the terminal window

for me, the taskbar is on the top of desktop

@Don-Vito
Copy link
Contributor

Does not reproduce for me: instead I simply have an used area under the terminal window

for me, the taskbar is on the top of desktop

I missed that "tiny" part. Was able to reproduce it with debugger attached.
Will try to take a look, unless the team has a direction.

IIRC there is some underlying window that is used for dragging - so my guess it is somehow not aligned with the island anymore.

@Don-Vito
Copy link
Contributor

@zadjii-msft - I see it is not the first issue with full screen and auto-hide taskbar that caused the windows to be not aligned:

void NonClientIslandWindow::_SetIsFullscreen(const bool fullscreenEnabled)
{
    IslandWindow::_SetIsFullscreen(fullscreenEnabled);
    if (_titlebar)
    {
        _titlebar.Visibility(_IsTitlebarVisible() ? Visibility::Visible : Visibility::Collapsed);
    }
    // GH#4224 - When the auto-hide taskbar setting is enabled, then we don't
    // always get another window message to trigger us to remove the drag bar.
    // So, make sure to update the size of the drag region here, so that it
    // _definitely_ goes away.
    _ResizeDragBarWindow();
}

@DHowett
Copy link
Member

DHowett commented Nov 24, 2020

@Don-Vito probably won’t be our last, either 😄 something about DwmExtendFrameIntoClientArea and WM_NCCALCSIZE occasionally make weird things like this happen :| and we haven’t quite nailed down all of them it seems!

@zadjii-msft
Copy link
Member

What the dickens, that definitely repros for me. I have no idea why, but it's a real bug.

I'll throw it in with the rest of the window shenanigans tracked in #1625. Thanks!

@Don-Vito
Copy link
Contributor

@zadjii-msft - This definitely repros.. I tried to look at it and got a headache.. 😄 I will probably try to look at it again later on...

@zadjii-msft zadjii-msft added Area-User Interface Issues pertaining to the user interface of the Console or Terminal Issue-Bug It either shouldn't be doing this or needs an investigation. Priority-3 A description (P3) Product-Terminal The new Windows Terminal. labels Nov 30, 2020
@ghost ghost removed the Needs-Tag-Fix Doesn't match tag requirements label Nov 30, 2020
@zadjii-msft zadjii-msft added this to the Terminal Backlog milestone Nov 30, 2020
@DHowett DHowett removed the Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting label Dec 14, 2020
@zadjii-msft
Copy link
Member

Good news everyone! Looks like this is resolved in recent Terminal builds. Not sure which exactly, but likely one of #11653 or #9737 fixed it. Thanks all!

@ghost ghost added the Needs-Tag-Fix Doesn't match tag requirements label Dec 9, 2021
@zadjii-msft zadjii-msft added Resolution-Fix-Available It's available in an Insiders build or a release and removed Needs-Tag-Fix Doesn't match tag requirements labels Dec 9, 2021
@MarcoBuess
Copy link

@zadjii-msft its still happening for me on 1.20.11381.0. On fullscreen the bar gets smaller but is still there. It will only disappear when windowed. Padding is set to 0 in my settings.json.

@zadjii-msft
Copy link
Member

@MarcoBuess And to confirm, you're using an auto-hiding, top taskbar as well? Windows version 19045?

This was closed out some 3 years ago now, it might be a recent regression, but I doubt that. We haven't done too much to mess with the windowing code over the last few releases. I also don't have a non-VM win10 machine handy with which to test easily 😕

@MarcoBuess
Copy link

MarcoBuess commented Jun 5, 2024

@zadjii-msft Actually I did recently before upgrading to Windows 11 (10.0.22631), where I have the issue even without the hiding taskbar situation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-User Interface Issues pertaining to the user interface of the Console or Terminal Issue-Bug It either shouldn't be doing this or needs an investigation. Priority-3 A description (P3) Product-Terminal The new Windows Terminal. Resolution-Fix-Available It's available in an Insiders build or a release
Projects
None yet
Development

No branches or pull requests

5 participants