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

App window size minimum now constrained to 1320px #13940

Closed
AshSimmonds opened this issue Feb 18, 2022 · 22 comments
Closed

App window size minimum now constrained to 1320px #13940

AshSimmonds opened this issue Feb 18, 2022 · 22 comments
Labels
bug Confirmed bugs or reports that are very likely to be bugs electron Issues related to our use of Electron that may need updates to Electron or upstream fixes priority-3 Bugs that affect small number of users and/or relatively cosmetic in nature windows Issues specific Desktop usage on Windows

Comments

@AshSimmonds
Copy link

Describe the bug

Up until today'ish update I've been able to use the W10 app on my second vertical monitor (1080x1920), but now it doesn't fit on the screen any more.

Version & OS

Windows 10
V 2.9.9 (x64)

Steps to reproduce the behavior

  1. Open the app
  2. Try to resize it less than 1320px or maximise it on a screen <1320px
  3. Critical stuff on the right is now obfuscated and unusable

Expected behavior

It was working fine yesterday being able to fit within the 1080px wide bounds without affecting the integrity of the application.

Actual behavior

As title.

Screenshots

See screenshot - anything in the red zone is now unusable.

screenshot_20220218-170602

Logs

N/A

Additional context

None.

@AshSimmonds
Copy link
Author

Previous issue was closed ( #8923 ), but this is a new seemingly unnecessary constraint introduced which disrupts workflow.

@sergiou87
Copy link
Member

Thanks for your report @AshSimmonds!! ❤️

I just tried that and I was able to resize the app to around 960x660. Does it change anything if you close the app and open it again?

@sergiou87 sergiou87 added the more-info-needed The submitter needs to provide more information about the issue label Feb 18, 2022
@AshSimmonds
Copy link
Author

Nope, same issue. Clean restart. Can see behaviour in this vid with how my monitors are set up:

@no-response no-response bot removed the more-info-needed The submitter needs to provide more information about the issue label Feb 18, 2022
@sergiou87
Copy link
Member

Interesting, thanks for that video! Is your interface scaled maybe? Have you tried on another machine? I also wonder if using it with multiple monitors has anything to do with it 🤔

Just for clarity, we haven't changed anything around that minimum. However, in the last 3 releases (2.9.7-2.9.9) we have upgraded Electron twice, which could cause this sort of issues, so I'm trying to pinpoint reasons for this to happen 😅

@AshSimmonds
Copy link
Author

It could well be to do with scaling as I use 125% on those two monitors, but my third (not in vid) is 100% scale at 1920x1080 and it's same there - so guess if it's scaling then 125% would override, for whatever reason.

Point being though this was a sudden flip - as in I was using the app as usual (squished to 1080px wide), got the update available thingy so let it do that, and less than 30 seconds later this new restriction was there.

Can make another vid switching settings if necessary, just didn't feel like resetting all my window placements etc (Powertools) again.

@sergiou87
Copy link
Member

Could you upload the log file from GitHub Desktop so that I could get some more information about this issue? To access the log files go to the file menu in GitHub Desktop and select Help > Show Logs.
The log files are created daily -- please upload a log file as an attachment from the day where you experienced the issue for the first time.

@AshSimmonds
Copy link
Author

There's a bunch of logs but only latest has refs to update. I think the app had been open 2-3 days before I clicked the update link, was on 2.9.6 then as soon as I updated to 2.9.7 the 2.9.9 release came through.

2022-02-18.desktop.production.log

screenshot_20220218-211258

@sergiou87
Copy link
Member

That's perfect, thanks 😄 Do you know which one exactly broke this for you? Was it 2.9.7 or 2.9.9?

@AshSimmonds
Copy link
Author

I'm pretty sure the app did a double update - as in I clicked the update link and it closed and re-opened, but the update link was still there so I clicked it again, so guessing that's where it was. However I don't recall doing anything actively in 2.9.7, just straight to update.

@sergiou87
Copy link
Member

Ohhh ok, so you can't tell if it was already broken on 2.9.7, right?

@AshSimmonds
Copy link
Author

Yes I can't.

@mateeni-dev
Copy link

Hi,

I am experiencing a similar issue on a windows 10 machine with version 2.9.9 which was not there on previous version (from log file) ==> launching: 2.9.8 (Windows 10.0.19044)

For me the problem is that the github app (when maximized) hides the windows taskbar at the bottom, which was not the case up-to v2.9.8

About size, I have never tried changing app window size before as I have always used the app in maximized mode so not sure if that is a new thing, but I can't change the size of app to fit the screen height on my monitor in v2.9.9 (i.e., when app is not maximized). By default app height is bigger than my screen resolution 1366 x 768

I am using a single monitor with 125% scale. Haven't tried scaling down yet

gh-issue

@sergiou87
Copy link
Member

I cannot repro that issue with the taskbar either. Please, give it a try and set the scale to 100% and let me know if that helps. For clarity, I'm not saying that is the way to fix it, I just want to know if the screen scale has anything to do with this new weird behavior 😅

@AshSimmonds
Copy link
Author

Ok, can confirm it's to do with scaling:

@sergiou87 sergiou87 added the investigation-needed Likely bugs, but haven't been reliably reproduced by a reviewer label Feb 18, 2022
@sergiou87
Copy link
Member

Thank you for confirming that!

It has to be a change in Electron's behavior, we're setting the min size like this:

private minWidth = 960
private minHeight = 660
// See https://github.com/desktop/desktop/pull/11162
private shouldMaximizeOnShow = false
public constructor() {
const savedWindowState = windowStateKeeper({
defaultWidth: this.minWidth,
defaultHeight: this.minHeight,
maximize: false,
})
const windowOptions: Electron.BrowserWindowConstructorOptions = {
x: savedWindowState.x,
y: savedWindowState.y,
width: savedWindowState.width,
height: savedWindowState.height,
minWidth: this.minWidth,
minHeight: this.minHeight,
show: false,

@sergiou87 sergiou87 added bug Confirmed bugs or reports that are very likely to be bugs priority-3 Bugs that affect small number of users and/or relatively cosmetic in nature and removed investigation-needed Likely bugs, but haven't been reliably reproduced by a reviewer labels Feb 18, 2022
@AshSimmonds
Copy link
Author

Ok thanks, at least I know I wasn't bonkers - well, on this issue at any rate. Not a difficult work-around until it's sussed out.

@mateeni-dev
Copy link

Scaling down to windows default 100% fixed it for me as well.

gh-issue

@placoderm
Copy link

I am also having a similar problem. Can confirm that when setting the display to 100% it is not a problem. But at 175% the bottom is cut off. 1920X1080

@tsvetilian-ty
Copy link
Member

It looks like the issue is fixed for Electron 17.2.0 and above electron/electron#33231

@AshSimmonds
Copy link
Author

This issue has regressed again.

@tsvetilian-ty
Copy link
Member

👋 @AshSimmonds the fix should be available in the beta track, and it'll be in the production channel next week. You can follow #14861

@sergiou87 sergiou87 added the electron Issues related to our use of Electron that may need updates to Electron or upstream fixes label Aug 24, 2022
@sergiou87 sergiou87 added the windows Issues specific Desktop usage on Windows label Sep 6, 2022
@sergiou87
Copy link
Member

Closing this as it will be finally fixed with the Electron upgrade to v19 in 3.0.8. See #15239

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Confirmed bugs or reports that are very likely to be bugs electron Issues related to our use of Electron that may need updates to Electron or upstream fixes priority-3 Bugs that affect small number of users and/or relatively cosmetic in nature windows Issues specific Desktop usage on Windows
Projects
None yet
Development

No branches or pull requests

5 participants