fbpx

Various changes to WordPress React Components in WordPress 5.5

GET UP TO $500K IN BUSINESS FUNDING

BlockPreview component

In previous versions, when using the BlockPreview component, setting a height for the container was necessary in order to show the block preview properly. This was not working properly in situations where the height of the content was dynamic and changing from preview to another.

In WordPress 5.5, the BlockPreview component automatically scales the content to the available width and adapts its height to its content height.

In most situations, this will improve the rendering of BlockPreview components but if you used to rely on the fixed heights, you should consider checking whether the new behavior is working

This post was originally published on this site

BUILD A WEBSITE: RESOURCES

Pin It on Pinterest

Share This
Xiphos Web Marketing

FREE
VIEW