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

Fix: Inline image width pop-up 'wanders' down page #20232

Merged

Conversation

jorgefilipecosta
Copy link
Member

Description

Fix: #19519

How has this been tested?

I added multiple inline images to a paragraph.
I selected an inline image and changed its width in the popover, I verified the popover did not move.
I changed the selected inline image, I verified the popover update its position to be close to the selected inline-image.

@jorgefilipecosta jorgefilipecosta added [Package] Format library /packages/format-library [Type] Bug An existing feature does not function as intended labels Feb 14, 2020
Copy link
Contributor

@youknowriad youknowriad left a comment

Choose a reason for hiding this comment

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

do you think this component could benefit from a react hooks refactor? or is it too complex?

@jorgefilipecosta
Copy link
Member Author

do you think this component could benefit from a react hooks refactor? or is it too complex?

It may benefit from a refactor, but my plan was to cherry-pick this into the next WordPress beta so I avoided a major change to the component to avoid creating some unknown bug.

Copy link
Contributor

@youknowriad youknowriad left a comment

Choose a reason for hiding this comment

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

Seems to work as intended

@jorgefilipecosta jorgefilipecosta force-pushed the fix/inline-image-width-pop-up-wanders-down-page branch from 08cb019 to 12aff9e Compare February 17, 2020 12:32
@jorgefilipecosta jorgefilipecosta merged commit 6f55017 into master Feb 17, 2020
@jorgefilipecosta jorgefilipecosta deleted the fix/inline-image-width-pop-up-wanders-down-page branch February 17, 2020 13:52
@github-actions github-actions bot added this to the Gutenberg 7.6 milestone Feb 17, 2020
@jorgefilipecosta jorgefilipecosta added the Backport to WP 6.7 Beta/RC Pull request that needs to be backported to the WordPress major release that's currently in beta label Feb 17, 2020
@jorgefilipecosta jorgefilipecosta removed the Backport to WP 6.7 Beta/RC Pull request that needs to be backported to the WordPress major release that's currently in beta label Feb 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Package] Format library /packages/format-library [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging this pull request may close these issues.

inline image width pop-up 'wanders' down page in Safari
2 participants