Skip to content

Fix issue with the "Resize Window to Fit" (w) command#731

Merged
cedrik-fuoco-adsk merged 4 commits intoAcademySoftwareFoundation:mainfrom
cedrik-fuoco-adsk:fix-issue-with-fit-w
Apr 3, 2025
Merged

Fix issue with the "Resize Window to Fit" (w) command#731
cedrik-fuoco-adsk merged 4 commits intoAcademySoftwareFoundation:mainfrom
cedrik-fuoco-adsk:fix-issue-with-fit-w

Conversation

@cedrik-fuoco-adsk
Copy link
Copy Markdown
Contributor

Fix issue with the "Resize Window to Fit" (w) command

Linked issues

n/a

Summarize your change.

Remove a call to resizeFit when calling the method triggered by the w shortcut.

Describe the reason for the change.

The call to resizeFit() was introduced by #194 in July 2023. After removing the call to resizeFit(), it does not seem to break what the PR #194 was fixing and it fixes the w shortcut. In anycase, the resizeFit() should not be called fitWindowToImage because they have different purpose and behaviors.

Describe what you have tested and on which operating system.

Rocky Linux 8

Add a list of changes, and note any that might need special attention during the review.

If possible, provide screenshots.

When opening RV and the media I used to test:
initial

This is BEFORE the fix:
before

This is AFTER the fix:
after

Signed-off-by: Cédrik Fuoco <cedrik.fuoco@autodesk.com>
Copy link
Copy Markdown
Contributor

@bernie-laberge bernie-laberge left a comment

Choose a reason for hiding this comment

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

LGTM

@cedrik-fuoco-adsk cedrik-fuoco-adsk enabled auto-merge (squash) April 3, 2025 11:48
@cedrik-fuoco-adsk cedrik-fuoco-adsk merged commit b60f4ec into AcademySoftwareFoundation:main Apr 3, 2025
10 checks passed
cedrik-fuoco-adsk added a commit to cedrik-fuoco-adsk/OpenRV that referenced this pull request Apr 8, 2025
…eFoundation#731)

### Fix issue with the "Resize Window to Fit" (w) command

### Linked issues
n/a

### Summarize your change.
Remove a call to resizeFit when calling the method triggered by the `w`
shortcut.

### Describe the reason for the change.
The call to `resizeFit()` was introduced by
AcademySoftwareFoundation#194 in July
2023. After removing the call to `resizeFit()`, it does not seem to
break what the PR AcademySoftwareFoundation#194 was fixing and it fixes the `w` shortcut. In
anycase, the `resizeFit()` should not be called `fitWindowToImage`
because they have different purpose and behaviors.

### Describe what you have tested and on which operating system.
Rocky Linux 8

### Add a list of changes, and note any that might need special
attention during the review.

### If possible, provide screenshots.

When opening RV and the media I used to test:

![initial](https://github.com/user-attachments/assets/895fb676-470b-4b42-9dbd-d84c0f629c5b)

This is **BEFORE** the fix:

![before](https://github.com/user-attachments/assets/6c017ddc-a76f-4c8f-9d27-e2bcb251d3ec)

This is **AFTER** the fix:

![after](https://github.com/user-attachments/assets/068d4f95-3adc-4f08-a7a7-8f628b52b4d9)

Signed-off-by: Cédrik Fuoco <cedrik.fuoco@autodesk.com>
cedrik-fuoco-adsk added a commit to cedrik-fuoco-adsk/OpenRV that referenced this pull request Apr 8, 2025
…eFoundation#731)

### Fix issue with the "Resize Window to Fit" (w) command

### Linked issues
n/a

### Summarize your change.
Remove a call to resizeFit when calling the method triggered by the `w`
shortcut.

### Describe the reason for the change.
The call to `resizeFit()` was introduced by
AcademySoftwareFoundation#194 in July
2023. After removing the call to `resizeFit()`, it does not seem to
break what the PR AcademySoftwareFoundation#194 was fixing and it fixes the `w` shortcut. In
anycase, the `resizeFit()` should not be called `fitWindowToImage`
because they have different purpose and behaviors.

### Describe what you have tested and on which operating system.
Rocky Linux 8

### Add a list of changes, and note any that might need special
attention during the review.

### If possible, provide screenshots.

When opening RV and the media I used to test:

![initial](https://github.com/user-attachments/assets/895fb676-470b-4b42-9dbd-d84c0f629c5b)

This is **BEFORE** the fix:

![before](https://github.com/user-attachments/assets/6c017ddc-a76f-4c8f-9d27-e2bcb251d3ec)

This is **AFTER** the fix:

![after](https://github.com/user-attachments/assets/068d4f95-3adc-4f08-a7a7-8f628b52b4d9)

Signed-off-by: Cédrik Fuoco <cedrik.fuoco@autodesk.com>
richardssam pushed a commit to richardssam/OpenRV that referenced this pull request Jun 17, 2025
…eFoundation#731)

### Fix issue with the "Resize Window to Fit" (w) command

### Linked issues
n/a

### Summarize your change.
Remove a call to resizeFit when calling the method triggered by the `w`
shortcut.

### Describe the reason for the change.
The call to `resizeFit()` was introduced by
AcademySoftwareFoundation#194 in July
2023. After removing the call to `resizeFit()`, it does not seem to
break what the PR AcademySoftwareFoundation#194 was fixing and it fixes the `w` shortcut. In
anycase, the `resizeFit()` should not be called `fitWindowToImage`
because they have different purpose and behaviors.

### Describe what you have tested and on which operating system.
Rocky Linux 8

### Add a list of changes, and note any that might need special
attention during the review.

### If possible, provide screenshots.

When opening RV and the media I used to test:

![initial](https://github.com/user-attachments/assets/895fb676-470b-4b42-9dbd-d84c0f629c5b)

This is **BEFORE** the fix:

![before](https://github.com/user-attachments/assets/6c017ddc-a76f-4c8f-9d27-e2bcb251d3ec)

This is **AFTER** the fix:

![after](https://github.com/user-attachments/assets/068d4f95-3adc-4f08-a7a7-8f628b52b4d9)

Signed-off-by: Cédrik Fuoco <cedrik.fuoco@autodesk.com>
Signed-off-by: Sam.Richards@taurich.org <Sam.Richards@taurich.org>
richardssam pushed a commit to richardssam/OpenRV that referenced this pull request Jun 17, 2025
…eFoundation#731)

### Fix issue with the "Resize Window to Fit" (w) command

### Linked issues
n/a

### Summarize your change.
Remove a call to resizeFit when calling the method triggered by the `w`
shortcut.

### Describe the reason for the change.
The call to `resizeFit()` was introduced by
AcademySoftwareFoundation#194 in July
2023. After removing the call to `resizeFit()`, it does not seem to
break what the PR AcademySoftwareFoundation#194 was fixing and it fixes the `w` shortcut. In
anycase, the `resizeFit()` should not be called `fitWindowToImage`
because they have different purpose and behaviors.

### Describe what you have tested and on which operating system.
Rocky Linux 8

### Add a list of changes, and note any that might need special
attention during the review.

### If possible, provide screenshots.

When opening RV and the media I used to test:

![initial](https://github.com/user-attachments/assets/895fb676-470b-4b42-9dbd-d84c0f629c5b)

This is **BEFORE** the fix:

![before](https://github.com/user-attachments/assets/6c017ddc-a76f-4c8f-9d27-e2bcb251d3ec)

This is **AFTER** the fix:

![after](https://github.com/user-attachments/assets/068d4f95-3adc-4f08-a7a7-8f628b52b4d9)

Signed-off-by: Cédrik Fuoco <cedrik.fuoco@autodesk.com>
Signed-off-by: Sam.Richards@taurich.org <Sam.Richards@taurich.org>
@cedrik-fuoco-adsk cedrik-fuoco-adsk deleted the fix-issue-with-fit-w branch July 28, 2025 13:36
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.

3 participants