Skip to content

Conversation

@SasLord
Copy link
Contributor

@SasLord SasLord commented Aug 11, 2025

Fixed inaccurate diff calculation and indexing in resizeDocument

Signed-off-by: Alexander Platov <alexander.platov@hardcoreeng.com>
@huly-github-staging
Copy link

Connected to Huly®: UBERF-13115

@aonnikov aonnikov requested a review from Copilot August 12, 2025 03:28
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes a bug in the separator resize logic by correcting inaccurate diff calculation and indexing issues in the resizeDocument function. The changes ensure proper index calculation when resizing separators and improve the accuracy of size calculations.

  • Fixed index calculation for accessing separator elements and rects during resize operations
  • Improved diff calculation logic to use actual crop amounts instead of available crop amounts
  • Corrected size unit conversion by using pxToRem when updating separator sizes

@aonnikov aonnikov merged commit b36e64d into develop Aug 12, 2025
23 of 24 checks passed
@aonnikov aonnikov deleted the fix-eqms-1630 branch August 12, 2025 04:17
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