Repository navigation
fix: preserve original image size when the editor opens - #10066
Open
gezerui888 wants to merge 1 commit into
Open
gezerui888 wants to merge 1 commit into
gezerui888 wants to merge 1 commit into
Conversation
👷 Deploy request for label-studio-storybook pending review.Visit the deploys page to approve it
|
👷 Deploy request for heartex-docs pending review.Visit the deploys page to approve it
|
👷 Deploy request for label-studio-docs-new-theme pending review.Visit the deploys page to approve it
|
👷 Deploy request for label-studio-playground pending review.Visit the deploys page to approve it
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #9699.
With
defaultZoom="original", the editor fitted my 1,200 × 800 image to the viewport. I changed the initial load to select actual size and kept that size when the toolbar narrows the viewport. A 100-pixel square now measures 100 CSS pixels after layout. It measured 44 before.To verify in Chrome, load the same image with original, fit and auto. After the toolbar appears, original should show each square at 100 CSS pixels. Fit and auto should scale the grid to the viewport. I checked all three modes. The regression test also covers manual zoom. Selecting actual size with Shift+2 now keeps that size on resize. Rotation still uses the existing zoom behavior.
The production editor built. All 3,934 editor tests passed, with seven more skipped. The full frontend suite had the same three failures and one error on develop and this branch.
cc @farioas