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

wrong window size after minimize and restore when setting BrowserWindow's resizable to false #15049

Closed
cao262 opened this issue Oct 10, 2018 · 4 comments
Labels

Comments

@cao262
Copy link

cao262 commented Oct 10, 2018

  • Output of node_modules/.bin/electron --version: 3.0.3
  • Operating System (Platform and Version): windows 10
  • Output of node_modules/.bin/electron --version on last known working Electron version (if applicable): 2.x.x

Expected Behavior
A clear and concise description of what you expected to happen.

mainWindow = new BrowserWindow({ resizable: false })

Minimize and restore main windows by click app icon on the taskbar, the window is getting smaller and smaller.

Actual behavior
A clear and concise description of what actually happened.

The main window keeps the same size.

To Reproduce
Your best chance of getting this bug looked at quickly is to provide a REPOSITORY that can be cloned and run.

You can fork electron-quick-start and include a link to the branch with your changes.

If you provide a URL, please list the commands required to clone/setup/run your repo e.g.

$ git clone $YOUR_URL -b $BRANCH
$ npm install
$ npm start || electron .

It's easy to start from electron-quick-start repo, just add the resizable: false to reproduce it.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional Information
Add any other context about the problem here.

@welcome
Copy link

welcome bot commented Oct 10, 2018

👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

To help make it easier for us to investigate your issue, please follow the contributing guidelines.

@sofianguy
Copy link
Contributor

Thank you for taking the time to report this issue and helping to make Electron better.

The version of Electron you reported this on has been superseded by newer releases.

If you're still experiencing this issue in Electron v4.2.x or later, please add a comment specifying the version you're testing with and any other new information that a maintainer trying to reproduce the issue should know.

I'm setting the blocked/need-info label for the above reasons. This issue will be closed 7 days from now if there is no response.

Thanks in advance! Your help is appreciated.

@sofianguy sofianguy added the blocked/need-info ❌ Cannot proceed without more information label Aug 9, 2019
@sofianguy
Copy link
Contributor

Thank you for your issue!

We haven't gotten a response to our questions in our comment above. With only the information that is currently in the issue, we don't have enough information to take action. I'm going to close this but don't hesitate to reach out if you have or find the answers we need, we'll be happy to reopen the issue.

@pejman1
Copy link

pejman1 commented Jun 23, 2020

I have same issue, after restoring from minimize the size expands about 10 pixel .
I set min width and min height and use getCurrentWindow().minimize(); function .
if windows was set to min width and min height after recovering from minimize state it expands the size about 10 pixel
same issue while maximizing and restoring window

I use electron 9.0.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
3.0.x / 3.1.x
Unsorted Issues
Development

No branches or pull requests

3 participants