Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport Zoom out: fix scaling issues (#65998) to WP 6.7 #66047

Merged
merged 1 commit into from
Oct 14, 2024

Commits on Oct 14, 2024

  1. Zoom out: fix scaling issues (#65998)

    * changed from using borders to use pseudo elements
    
    * added comments
    
    * Include frame size in the scaling calculation
    
    Instead of adding the frame size as a border (which causes reflow issues), include the frame size in the scaling calculation so there's always a left/right gutter of the frame size.
    
    * Account for scaling in the frame height
    
    * Calculation in CSS
    
    * Revert "Calculation in CSS"
    
    This reverts commit 38de9fc.
    
    * Add comment about why the calculation for scaling needs to happen in the JS
    
    * Force px value for frameSize
    
    * Restore previous frameSize var setting
    
    * Add back line break
    
    * Use padding top/bottom instead of before/after for top/bottom frame
    
    * Remove more before/after css since we are using padding
    
    ---------
    
    Co-authored-by: Jerry Jones <[email protected]>
    Co-authored-by: Alex Lende <[email protected]>
    Co-authored-by: MaggieCabrera <[email protected]>
    Co-authored-by: jeryj <[email protected]>
    Co-authored-by: ajlende <[email protected]>
    Co-authored-by: richtabor <[email protected]>
    Co-authored-by: ndiego <[email protected]>
    Co-authored-by: getdave <[email protected]>
    Co-authored-by: talldan <[email protected]>
    # Conflicts:
    #	packages/block-editor/src/components/iframe/style.scss
    MaggieCabrera authored and kevin940726 committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    ece23b4 View commit details
    Browse the repository at this point in the history