@@ -71,6 +71,7 @@ export const FormLayoutMixin = (superClass) =>
71
71
] ;
72
72
} ,
73
73
observer : '_responsiveStepsChanged' ,
74
+ sync : true ,
74
75
} ,
75
76
76
77
/**
@@ -79,6 +80,7 @@ export const FormLayoutMixin = (superClass) =>
79
80
*/
80
81
_columnCount : {
81
82
type : Number ,
83
+ sync : true ,
82
84
} ,
83
85
84
86
/**
@@ -87,6 +89,7 @@ export const FormLayoutMixin = (superClass) =>
87
89
*/
88
90
_labelsOnTop : {
89
91
type : Boolean ,
92
+ sync : true ,
90
93
} ,
91
94
92
95
/** @private */
@@ -102,15 +105,12 @@ export const FormLayoutMixin = (superClass) =>
102
105
103
106
/** @protected */
104
107
ready ( ) {
105
- // Here we create and attach a style element that we use for validating
108
+ // Here we attach a style element that we use for validating
106
109
// CSS values in `responsiveSteps`. We can't add this to the `<template>`,
107
110
// because Polymer will throw it away. We need to create this before
108
111
// `super.ready()`, because `super.ready()` invokes property observers,
109
112
// and the observer for `responsiveSteps` does CSS value validation.
110
- this . _styleElement = document . createElement ( 'style' ) ;
111
113
this . appendChild ( this . _styleElement ) ;
112
- // Ensure there is a child text node in the style element
113
- this . _styleElement . textContent = ' ' ;
114
114
115
115
super . ready ( ) ;
116
116
@@ -120,6 +120,10 @@ export const FormLayoutMixin = (superClass) =>
120
120
constructor ( ) {
121
121
super ( ) ;
122
122
123
+ this . _styleElement = document . createElement ( 'style' ) ;
124
+ // Ensure there is a child text node in the style element
125
+ this . _styleElement . textContent = ' ' ;
126
+
123
127
this . __intersectionObserver = new IntersectionObserver ( ( [ entry ] ) => {
124
128
if ( ! entry . isIntersecting ) {
125
129
// Prevent possible jump when layout becomes visible
0 commit comments