@vaadin/overlay
Advanced tools
Comparing version 24.4.0-rc1 to 24.5.0-alpha1
{ | ||
"name": "@vaadin/overlay", | ||
"version": "24.4.0-rc1", | ||
"version": "24.5.0-alpha1", | ||
"publishConfig": { | ||
@@ -39,7 +39,7 @@ "access": "public" | ||
"@polymer/polymer": "^3.0.0", | ||
"@vaadin/a11y-base": "24.4.0-rc1", | ||
"@vaadin/component-base": "24.4.0-rc1", | ||
"@vaadin/vaadin-lumo-styles": "24.4.0-rc1", | ||
"@vaadin/vaadin-material-styles": "24.4.0-rc1", | ||
"@vaadin/vaadin-themable-mixin": "24.4.0-rc1", | ||
"@vaadin/a11y-base": "24.5.0-alpha1", | ||
"@vaadin/component-base": "24.5.0-alpha1", | ||
"@vaadin/vaadin-lumo-styles": "24.5.0-alpha1", | ||
"@vaadin/vaadin-material-styles": "24.5.0-alpha1", | ||
"@vaadin/vaadin-themable-mixin": "24.5.0-alpha1", | ||
"lit": "^3.0.0" | ||
@@ -52,3 +52,3 @@ }, | ||
}, | ||
"gitHead": "a81e3b927d44c56613fa4e1307494a2acc81005f" | ||
"gitHead": "57806caac5468532a3b4e3dbdda730cd0fca193a" | ||
} |
@@ -7,2 +7,3 @@ /** | ||
import { getAncestorRootNodes } from '@vaadin/component-base/src/dom-utils.js'; | ||
import { observeMove } from './vaadin-overlay-utils.js'; | ||
@@ -157,2 +158,8 @@ const PROP_NAMES_VERTICAL = { | ||
}); | ||
if (this.positionTarget) { | ||
this.__observePositionTargetMove = observeMove(this.positionTarget, () => { | ||
this._updatePosition(); | ||
}); | ||
} | ||
} | ||
@@ -171,2 +178,7 @@ | ||
} | ||
if (this.__observePositionTargetMove) { | ||
this.__observePositionTargetMove(); | ||
this.__observePositionTargetMove = null; | ||
} | ||
} | ||
@@ -226,2 +238,7 @@ | ||
if (targetRect.width === 0 && targetRect.height === 0 && this.opened) { | ||
this.opened = false; | ||
return; | ||
} | ||
// Detect the desired alignment and update the layout accordingly | ||
@@ -228,0 +245,0 @@ const shouldAlignStartVertically = this.__shouldAlignStartVertically(targetRect); |
73972
28
1649
+ Added@vaadin/a11y-base@24.5.0-alpha1(transitive)
+ Added@vaadin/component-base@24.5.0-alpha1(transitive)
+ Added@vaadin/icon@24.5.0-alpha1(transitive)
+ Added@vaadin/vaadin-lumo-styles@24.5.0-alpha1(transitive)
+ Added@vaadin/vaadin-material-styles@24.5.0-alpha1(transitive)
+ Added@vaadin/vaadin-themable-mixin@24.5.0-alpha1(transitive)
- Removed@vaadin/a11y-base@24.4.0-rc1(transitive)
- Removed@vaadin/component-base@24.4.0-rc1(transitive)
- Removed@vaadin/icon@24.4.0-rc1(transitive)
- Removed@vaadin/vaadin-lumo-styles@24.4.0-rc1(transitive)
- Removed@vaadin/vaadin-material-styles@24.4.0-rc1(transitive)
- Removed@vaadin/vaadin-themable-mixin@24.4.0-rc1(transitive)