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

Frameless minimum sized window is not restored to previous size after maximize and unmaximize #22440

Closed
3 tasks done
christian-judt opened this issue Feb 28, 2020 · 2 comments · Fixed by #25051
Closed
3 tasks done

Comments

@christian-judt
Copy link

christian-judt commented Feb 28, 2020

Preflight Checklist

  • I have read the Contributing Guidelines for this project.
  • I agree to follow the Code of Conduct that this project adheres to.
  • I have searched the issue tracker for an issue that matches the one I want to file, without success.

Issue Details

  • Electron Version:
    • 7.1.2 - 9.0.0-beta.3 (and presumably later versions until this bug is fixed)
  • Operating System:
    • Windows 10 pro (1909)
  • Last Known Working Electron version:
    • 7.1.1

Preconditions

  • Window is frameless
  • Window has minimum size
  • Window size is minimum size

Expected behavior

  • Window is maximized
  • Window is unmaximized
  • Window has the same size as before the maximization

Actual Behavior

  • Window is maximized
  • Window is unmaximized
  • Window is slightly higher and wider than before the maximization

To Reproduce

git clone -b frameless-minsize-maximize-unmaximize-bug https://github.com/christian-judt/electron-quick-start.git
cd electron-quick-start
npm install
npm start

Additional Information

Other maybe related issues

@aleksey-hoffman
Copy link

I reproduced it in version 8.0.3. I see the same behavior:

  • Resized window to the defined minimum (500x300)
  • Maximize, un-maximize
  • The window size changes to 515x315
mainWindow = new BrowserWindow({
    title: "Title",
    width: 1280,
    height: 720,
    minWidth: 500,
    minHeight: 300,
    frame: false,
    transparent: false,
    resizable: true
})

@Pettor
Copy link

Pettor commented Jun 12, 2020

I have similar issue when using frame: false and resizable: false on Windows. Whenever the window is hidden (minimized or closed to taskbar) and I open again the size is incorrect (a pixels wider and higher).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
7.2.x
Unsorted Issues
8.2.x
Unsorted Issues
9-x-y
Does Not Block Stable
Development

Successfully merging a pull request may close this issue.

5 participants