Skip to content

Positioning of loaded content should be consistent for both cases - with autozooming triggering and without #5926

Description

@AlexeyGirin

Steps to Reproduce

  1. Go to Macro - Flex mode
  2. Load from file: 7 monomers.zip
    That would be picture 1
  3. Load from file: 15 monomers.zip
    That would be picture 2

Actual behavior
In case of picture 1 - system adjust top left of bounding box of loaded content to top left corner of canvas + autozoom triggered
image
In case of picture 2 - system adjust center of bounding box of loaded content to the center of canvas (no autozoom)
image

As per @ljubica-milovic - logic should be consistent - we have to adjust top left of bounding box of loaded content to top left corner of canvas in any case

Expected behavior
In case of picture 1 - system adjust top left of bounding box of loaded content to top left corner of canvas + autozoom triggered
image
In case of picture 2 - system adjust top left of bounding box of loaded content to top left corner of canvas (no autozoom)
image

As per @ljubica-milovic - logic should be consistent - we have to adjust top left of bounding box of loaded content to top left corner of canvas in any case

Versions

  • Ketcher Version 2.27.0-rc.1 Build at 2024-11-05; 14:55:18
  • Indigo Toolkit Version 1.26.0-rc.1.0-g904d2d992-wasm32-wasm-clang-19.0.0
  • Chrome Version 130.0.6723.117 (Official Build) (64-bit)
  • Win10

Found while testing - #5600

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions