@vaadin/overlay
Advanced tools
Comparing version 23.3.6 to 23.3.7
{ | ||
"name": "@vaadin/overlay", | ||
"version": "23.3.6", | ||
"version": "23.3.7", | ||
"publishConfig": { | ||
@@ -39,6 +39,6 @@ "access": "public" | ||
"@polymer/polymer": "^3.0.0", | ||
"@vaadin/component-base": "~23.3.6", | ||
"@vaadin/vaadin-lumo-styles": "~23.3.6", | ||
"@vaadin/vaadin-material-styles": "~23.3.6", | ||
"@vaadin/vaadin-themable-mixin": "~23.3.6" | ||
"@vaadin/component-base": "~23.3.7", | ||
"@vaadin/vaadin-lumo-styles": "~23.3.7", | ||
"@vaadin/vaadin-material-styles": "~23.3.7", | ||
"@vaadin/vaadin-themable-mixin": "~23.3.7" | ||
}, | ||
@@ -48,10 +48,10 @@ "devDependencies": { | ||
"@polymer/iron-overlay-behavior": "^3.0.0", | ||
"@vaadin/button": "~23.3.6", | ||
"@vaadin/radio-group": "~23.3.6", | ||
"@vaadin/button": "~23.3.7", | ||
"@vaadin/radio-group": "~23.3.7", | ||
"@vaadin/testing-helpers": "^0.3.2", | ||
"@vaadin/text-field": "~23.3.6", | ||
"@vaadin/text-field": "~23.3.7", | ||
"lit": "^2.0.0", | ||
"sinon": "^13.0.2" | ||
}, | ||
"gitHead": "3ea0e9875f51cca9c4f78cf731fd8009c5a45ddb" | ||
"gitHead": "9689f8650a9170b38c0ee691b9603ffb550e04ad" | ||
} |
@@ -57,2 +57,12 @@ /** | ||
noVerticalOverlap: boolean; | ||
/** | ||
* If the overlay content has no intrinsic height, this property can be used to set | ||
* the minimum vertical space (in pixels) required by the overlay. Setting a value to | ||
* the property effectively disables the content measurement in favor of using this | ||
* fixed value for determining the open direction. | ||
* | ||
* @attr {number} required-vertical-space | ||
*/ | ||
requiredVerticalSpace: number; | ||
} |
@@ -96,2 +96,15 @@ /** | ||
}, | ||
/** | ||
* If the overlay content has no intrinsic height, this property can be used to set | ||
* the minimum vertical space (in pixels) required by the overlay. Setting a value to | ||
* the property effectively disables the content measurement in favor of using this | ||
* fixed value for determining the open direction. | ||
* | ||
* @attr {number} required-vertical-space | ||
*/ | ||
requiredVerticalSpace: { | ||
type: Number, | ||
value: 0, | ||
}, | ||
}; | ||
@@ -102,3 +115,3 @@ } | ||
return [ | ||
'__positionSettingsChanged(horizontalAlign, verticalAlign, noHorizontalOverlap, noVerticalOverlap)', | ||
'__positionSettingsChanged(horizontalAlign, verticalAlign, noHorizontalOverlap, noVerticalOverlap, requiredVerticalSpace)', | ||
'__overlayOpenedChanged(opened, positionTarget)', | ||
@@ -271,3 +284,4 @@ ]; | ||
// smaller than its current space before the fit-calculations. | ||
const contentHeight = Math.max(this.__oldContentHeight || 0, this.$.overlay.offsetHeight); | ||
const contentHeight = | ||
this.requiredVerticalSpace || Math.max(this.__oldContentHeight || 0, this.$.overlay.offsetHeight); | ||
this.__oldContentHeight = this.$.overlay.offsetHeight; | ||
@@ -274,0 +288,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
67613
1475