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

fix: ensure widget size is set correctly on linux on small screens #28757

Conversation

trop[bot]
Copy link
Contributor

@trop trop bot commented Apr 21, 2021

Backport of #28681

See that PR for details.

Notes: no-notes

When creating a widget on linux the bounds are restricted to the screen
size, when calling SetSize / SetBounds they are not.  This fixes this
initialization issue by calling SetBounds after widget creation.

Noticed this issue while running linux tests on xvfb with a screen size
smaller than the default electron window size (resulted in a failed
test).
@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Apr 21, 2021
@trop trop bot requested a review from MarshallOfSound April 21, 2021 08:59
@trop trop bot added 11-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes labels Apr 21, 2021
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Apr 21, 2021
@jkleinsc
Copy link
Contributor

Merging as CI failure is known flake unrelated to this PR.

@jkleinsc jkleinsc merged commit 35a559a into 11-x-y Apr 21, 2021
@release-clerk
Copy link

release-clerk bot commented Apr 21, 2021

No Release Notes

@jkleinsc jkleinsc deleted the trop/11-x-y-bp-fix-ensure-widget-size-is-set-correctly-on-linux-on-small-screens-1618995553925 branch April 21, 2021 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
11-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants