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

BrowserWindowOptions is not setting Width and Height properly #373

Closed
sachin-devitpl opened this issue Feb 13, 2020 · 2 comments
Closed
Assignees
Labels
Milestone

Comments

@sachin-devitpl
Copy link

I have tried to set the exact Width and Height of the window from BrowserWindowOptions in the Startup.cs but it is not setting it properly. I have set like this -

            var options = new BrowserWindowOptions
            {
                Frame = false,
                Width = 1280,
                Height = 720
            };

but it is setting 1294 x 727 pixel
If I am not using Frame = false then it is generating proper output 1280 x 720 px but I think there is some issue with using both of this parameters.

@sachin-devitpl
Copy link
Author

Temporary work around is setting Max Width & Max Height

            var options = new BrowserWindowOptions
            {
                Width = 1280,
                Height = 720,
                Frame = false,
                MaxWidth = 1280,
                MaxHeight = 720,
            }

@GregorBiswanger GregorBiswanger self-assigned this Feb 13, 2020
@GregorBiswanger GregorBiswanger added this to the 8.31.1 milestone Apr 17, 2020
@GregorBiswanger
Copy link
Member

Fixed with the new Electron.NET Version 8.31.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants