Skip to content

Conversation

@gokaysatir
Copy link
Contributor

  • Resolves: #
  • Target version: master

Summary

TODO

  • ...

Checklist

  • I have run make prettier-write and formatted the code.
  • All commits have Change-Id
  • I have run tests with make check
  • I have issued make run and manually verified that everything looks okay
  • Documentation (manuals or wiki) has been updated or is not required

@eszkadev
Copy link
Contributor

Kooha-2025-12-23-13-48-10.webm

I can reproduce with this patch. One issue is also: when I resize so image goes outside "page" - it makes weird flip and aspect ratio change

@gokaysatir gokaysatir force-pushed the private/gokay/aspect-ratio branch from e5bb5cb to 2606873 Compare December 24, 2025 13:40
@gokaysatir
Copy link
Contributor Author

Kooha-2025-12-23-13-48-10.webm

I can reproduce with this patch. One issue is also: when I resize so image goes outside "page" - it makes weird flip and aspect ratio change

Thanks for checking. I changed how we approach to the issue. This is more aligned with the core side behaviour.

@gokaysatir gokaysatir force-pushed the private/gokay/aspect-ratio branch from 2606873 to ab6b07e Compare December 25, 2025 09:43
@eszkadev
Copy link
Contributor

Kooha-2025-12-23-13-48-10.webm
I can reproduce with this patch. One issue is also: when I resize so image goes outside "page" - it makes weird flip and aspect ratio change

Thanks for checking. I changed how we approach to the issue. This is more aligned with the core side behaviour.

thanks, now it seems to respect aspect ratio. But let's fix the "flip" issue later as you say

return [rectangle.x1, rectangle.center[1]];
else if (handleID === '4')
return [rectangle.x2, rectangle.center[1]];
else if (handleID === '5')
Copy link
Contributor

Choose a reason for hiding this comment

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

we should have enum for these numbers

@github-project-automation github-project-automation bot moved this from To Review to To Test in Collabora Online Dec 28, 2025
@eszkadev eszkadev force-pushed the private/gokay/aspect-ratio branch from ab6b07e to 4c90cfc Compare December 30, 2025 06:31
@eszkadev eszkadev enabled auto-merge (rebase) December 30, 2025 06:32
@eszkadev
Copy link
Contributor

calc/image_operation_spec.js fails

Signed-off-by: Gökay Şatır <[email protected]>
Change-Id: Ib432c5c1c616d72b174fe725145e0c0dc9521890
…ue to snapping points.

Changes:There are 3 things here:
* Use the same properties with the preview so it is easier to manage. Cancel snapping while scaling.
* Don't keep ratio if the user is scaling using the edge points but not the corners. Core side also works this way.
* Checked the crop in Writer and modified the test accordingly.

Signed-off-by: Gökay Şatır <[email protected]>
Change-Id: Icdebaa163d1cb03fe44fc8e243e620990b43c09c
* Pick right crop handle instead of the left to ensure it doesn't overlap with other UI elements.
* Visually / manually check the test to ensure it checks the correct results.

Signed-off-by: Gökay Şatır <[email protected]>
Change-Id: I917897a788ca62812f01483ac70869d895b28c92
@gokaysatir gokaysatir force-pushed the private/gokay/aspect-ratio branch from 4c90cfc to 1cd551b Compare January 5, 2026 12:08
Signed-off-by: Szymon Kłos <[email protected]>
Change-Id: I541c5fe8103c69662995d0f5bf41b4f135b952ae
@eszkadev
Copy link
Contributor

eszkadev commented Jan 5, 2026

I added cypress test fix.

BEFORE:
Screenshot From 2026-01-05 13-38-31
(no idea what has been changed visually)

AFTER:
Screenshot From 2026-01-05 13-44-33
(very visible difference) :)

@gokaysatir
Copy link
Contributor Author

:) Thanks for checking @eszkadev . I checked it again. It is interesting because we are not changing the height there. I checked it again now. Please see video below. It is how it seems on my machine.

I am not sure where the difference comes from.

1.mp4

@gokaysatir
Copy link
Contributor Author

In the video, test suite quickly widens the image and then checks its size.

Signed-off-by: Szymon Kłos <[email protected]>
Change-Id: I8b178b50819c1df8c0ea362a1307c28b69a10083
@eszkadev
Copy link
Contributor

eszkadev commented Jan 5, 2026

In the video, test suite quickly widens the image and then checks its size.

exactly what happened before my fix :) Did you pull ?

Kooha-2026-01-05-14-08-58.webm

@eszkadev
Copy link
Contributor

eszkadev commented Jan 5, 2026

I adjusted the same way writer test, now we have in Calc Y move and in Writer X move so we test both

@gokaysatir
Copy link
Contributor Author

I adjusted the same way writer test, now we have in Calc Y move and in Writer X move so we test both

Okay, then thank you for the additions.

@eszkadev eszkadev merged commit 1e8aef7 into main Jan 5, 2026
14 of 15 checks passed
@eszkadev eszkadev deleted the private/gokay/aspect-ratio branch January 5, 2026 14:39
@github-project-automation github-project-automation bot moved this from To Test to Done in Collabora Online Jan 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants