@vaadin/form-layout 24.5.0-alpha8 → 24.5.0-beta1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +10 -9
- package/src/vaadin-form-layout.js +6 -0
- package/web-types.json +1 -1
- package/web-types.lit.json +1 -1
package/README.md
CHANGED
|
@@ -55,7 +55,7 @@ import '@vaadin/form-layout/src/vaadin-form-layout.js';
|
|
|
55
55
|
|
|
56
56
|
## Contributing
|
|
57
57
|
|
|
58
|
-
Read the [contributing guide](https://vaadin.com/docs/latest/contributing
|
|
58
|
+
Read the [contributing guide](https://vaadin.com/docs/latest/contributing) to learn about our development process, how to propose bugfixes and improvements, and how to test your changes to Vaadin components.
|
|
59
59
|
|
|
60
60
|
## License
|
|
61
61
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/form-layout",
|
|
3
|
-
"version": "24.5.0-
|
|
3
|
+
"version": "24.5.0-beta1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -36,21 +36,22 @@
|
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@polymer/polymer": "^3.0.0",
|
|
39
|
-
"@vaadin/
|
|
40
|
-
"@vaadin/
|
|
41
|
-
"@vaadin/vaadin-
|
|
42
|
-
"@vaadin/vaadin-
|
|
39
|
+
"@vaadin/a11y-base": "24.5.0-beta1",
|
|
40
|
+
"@vaadin/component-base": "24.5.0-beta1",
|
|
41
|
+
"@vaadin/vaadin-lumo-styles": "24.5.0-beta1",
|
|
42
|
+
"@vaadin/vaadin-material-styles": "24.5.0-beta1",
|
|
43
|
+
"@vaadin/vaadin-themable-mixin": "24.5.0-beta1"
|
|
43
44
|
},
|
|
44
45
|
"devDependencies": {
|
|
45
|
-
"@vaadin/chai-plugins": "24.5.0-
|
|
46
|
-
"@vaadin/custom-field": "24.5.0-
|
|
46
|
+
"@vaadin/chai-plugins": "24.5.0-beta1",
|
|
47
|
+
"@vaadin/custom-field": "24.5.0-beta1",
|
|
47
48
|
"@vaadin/testing-helpers": "^1.0.0",
|
|
48
|
-
"@vaadin/text-field": "24.5.0-
|
|
49
|
+
"@vaadin/text-field": "24.5.0-beta1",
|
|
49
50
|
"sinon": "^18.0.0"
|
|
50
51
|
},
|
|
51
52
|
"web-types": [
|
|
52
53
|
"web-types.json",
|
|
53
54
|
"web-types.lit.json"
|
|
54
55
|
],
|
|
55
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "da4b57724d7089e3766d59d01068159322adb2b8"
|
|
56
57
|
}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import { html, PolymerElement } from '@polymer/polymer/polymer-element.js';
|
|
7
|
+
import { isElementHidden } from '@vaadin/a11y-base/src/focus-utils.js';
|
|
7
8
|
import { defineCustomElement } from '@vaadin/component-base/src/define.js';
|
|
8
9
|
import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
|
|
9
10
|
import { ResizeMixin } from '@vaadin/component-base/src/resize-mixin.js';
|
|
@@ -456,6 +457,11 @@ class FormLayout extends ResizeMixin(ElementMixin(ThemableMixin(PolymerElement))
|
|
|
456
457
|
* @protected
|
|
457
458
|
*/
|
|
458
459
|
_updateLayout() {
|
|
460
|
+
// Do not update layout when invisible
|
|
461
|
+
if (isElementHidden(this)) {
|
|
462
|
+
return;
|
|
463
|
+
}
|
|
464
|
+
|
|
459
465
|
/*
|
|
460
466
|
The item width formula:
|
|
461
467
|
|
package/web-types.json
CHANGED