Editor: new package updates for 6.7 RC1.
Syncs packages to include two further bug fixes. Props isabel_brison, peterwilsoncc. Fixes #62271. Built from https://develop.svn.wordpress.org/trunk@59268 git-svn-id: http://core.svn.wordpress.org/trunk@58660 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4318418b39
commit
1a1d6c9ea8
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -32222,6 +32222,17 @@ function isElementVisible(element) {
|
|||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if the element is scrollable.
|
||||
*
|
||||
* @param {Element} element Element.
|
||||
* @return {boolean} True if the element is scrollable.
|
||||
*/
|
||||
function isScrollable(element) {
|
||||
const style = window.getComputedStyle(element);
|
||||
return style.overflowX === 'auto' || style.overflowX === 'scroll' || style.overflowY === 'auto' || style.overflowY === 'scroll';
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the rect of the element including all visible nested elements.
|
||||
*
|
||||
|
@ -32249,7 +32260,11 @@ function getVisibleElementBounds(element) {
|
|||
while (currentElement = stack.pop()) {
|
||||
for (const child of currentElement.children) {
|
||||
if (isElementVisible(child)) {
|
||||
const childBounds = child.getBoundingClientRect();
|
||||
let childBounds = child.getBoundingClientRect();
|
||||
// If the parent is scrollable, use parent's scrollable bounds.
|
||||
if (isScrollable(currentElement)) {
|
||||
childBounds = currentElement.getBoundingClientRect();
|
||||
}
|
||||
bounds = rectUnion(bounds, childBounds);
|
||||
stack.push(child);
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -26225,7 +26225,7 @@ const ZoomOutToggle = ({
|
|||
disabled: disabled,
|
||||
onClick: handleZoomOut,
|
||||
icon: library_square,
|
||||
label: (0,external_wp_i18n_namespaceObject.__)('Toggle Zoom Out'),
|
||||
label: (0,external_wp_i18n_namespaceObject.__)('Zoom Out'),
|
||||
isPressed: isZoomOut,
|
||||
size: "compact",
|
||||
showTooltip: !showIconLabels
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -16,7 +16,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.7-beta3-59267';
|
||||
$wp_version = '6.7-beta3-59268';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue