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

Resize Popout to fit content on popout #557

Merged
merged 47 commits into from
Nov 6, 2023
Merged

Conversation

joehenry9498
Copy link
Contributor

@joehenry9498 joehenry9498 commented Oct 24, 2023

Changes

Originally popouts were set to the default window size of child windows on popout. They will now fit to their content inside on popout. This couldn't be done like how it was with floating widgets because that uses hooks and the popout needs to use class components. The preferredFloatingWidgetSize of the tab will be used to find the inital popout size when bounds are not set.

Testing

I tested the popout in the popout window frontstage. Pop it out from docking on each side and as a floating widget. I also tested in the exercise widget api frontstage.

@joehenry9498 joehenry9498 requested a review from a team as a code owner October 24, 2023 19:23
@joehenry9498 joehenry9498 linked an issue Oct 24, 2023 that may be closed by this pull request
@joehenry9498
Copy link
Contributor Author

Working on adjusting it so that it is only sized like this on initial popout and not after resized

@joehenry9498 joehenry9498 marked this pull request as draft October 30, 2023 17:48
Copy link
Contributor

@raplemie raplemie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With the suggested fix, seems to be working quite good !

@raplemie raplemie added the patch Changes in this PR requires a patch release label Nov 3, 2023
@joehenry9498 joehenry9498 merged commit e65756f into master Nov 6, 2023
17 checks passed
@joehenry9498 joehenry9498 deleted the joeh/resizePopout branch November 6, 2023 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch Changes in this PR requires a patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Widgets do not properly size window when popped out
3 participants