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

Clean-up of resizing logic #1337

Merged
merged 1 commit into from
May 7, 2024
Merged

Conversation

felipeerias
Copy link
Collaborator

@felipeerias felipeerias commented Apr 2, 2024

Clean-up of our resizing logic to make it more consistent and to remove some edge cases. This logic is now mostly encapsulated inside of WindowWidget.

Manual mode allows the window to be resized freely within the allowed boundaries. The maximum width depends on the number of active windows. The maximum height has been increased slightly to accommodate vertical videos better.

WindowWidget.getSizeForScale() is used to resize the window when using one of the preset sizes and when entering fullscreen. It will keep the window size within the boundaries while trying to preserve the current aspect ratio.

@felipeerias felipeerias force-pushed the felipeerias/resizing-adjustments branch from d2b96ba to 557ec54 Compare April 3, 2024 01:09
@felipeerias felipeerias force-pushed the felipeerias/resizing-adjustments branch 2 times, most recently from 4fb402d to b67fd2d Compare May 2, 2024 03:05
@felipeerias felipeerias changed the title Resizing adjustments and edge cases Clean-up of our resizing logic May 2, 2024
@felipeerias felipeerias changed the title Clean-up of our resizing logic Clean-up of resizing logic May 2, 2024
@felipeerias felipeerias marked this pull request as ready for review May 2, 2024 03:07
@felipeerias felipeerias force-pushed the felipeerias/resizing-adjustments branch from b67fd2d to 098cc5e Compare May 2, 2024 03:08
Copy link
Member

@svillar svillar left a comment

Choose a reason for hiding this comment

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

Works great, I just have some suggestions for the code

Clean-up of our resizing logic to make it more consistent and
to remove some edge cases. This logic is now mostly
encapsulated inside of WindowWidget.

Manual mode allows the window to be resized freely within the
allowed boundaries. The maximum width depends on the number
of active windows. The maximum height has been increased
slightly to accommodate vertical videos better.

WindowWidget.getSizeForScale() is used to resize the window
when using one of the preset sizes and when entering
fullscreen. It will keep the window size within the
boundaries while trying to preserve the current aspect ratio.
@felipeerias felipeerias force-pushed the felipeerias/resizing-adjustments branch from 098cc5e to ce348b2 Compare May 7, 2024 03:15
@felipeerias felipeerias requested a review from svillar May 7, 2024 03:15
@felipeerias
Copy link
Collaborator Author

@svillar Thank you, I have applied your suggestions and rebased the branch. It is ready for review again.

@svillar svillar merged commit d4284ef into main May 7, 2024
20 checks passed
@svillar svillar deleted the felipeerias/resizing-adjustments branch May 7, 2024 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants