You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 9e02f53
Browse filesBrowse the repository at this point in the historyBrowse files
* @deprecated Since Vaadin 23, `notifyResize()` is deprecated. The component uses a
599
-
* ResizeObserver internally and doesn't need to be explicitly notified of resizes.
600
-
*/
601
-
notifyResize(){
602
-
console.warn(
603
-
`WARNING: Since Vaadin 23, notifyResize() is deprecated. The component uses a ResizeObserver internally and doesn't need to be explicitly notified of resizes.`
* A mixin that uses a ResizeObserver to listen to host size changes.
18
+
*
19
+
* @polymerMixin
20
+
*/
21
+
exportconstResizeMixin=dedupingMixin(
22
+
(superclass)=>
23
+
classResizeMixinClassextendssuperclass{
24
+
/** @protected */
25
+
connectedCallback(){
26
+
super.connectedCallback();
27
+
observer.observe(this);
28
+
}
29
+
30
+
/** @protected */
31
+
disconnectedCallback(){
32
+
super.disconnectedCallback();
33
+
observer.unobserve(this);
34
+
}
35
+
36
+
/**
37
+
* A handler invoked on host resize. By default, it does nothing.
38
+
* Override the method to implement your own behavior.
39
+
*
40
+
* @protected
41
+
*/
42
+
_onResize(_contentRect){
43
+
// To be implemented.
44
+
}
45
+
46
+
/**
47
+
* @deprecated Since Vaadin 23, `notifyResize()` is deprecated. The component uses a
48
+
* ResizeObserver internally and doesn't need to be explicitly notified of resizes.
49
+
*/
50
+
notifyResize(){
51
+
console.warn(
52
+
`WARNING: Since Vaadin 23, notifyResize() is deprecated. The component uses a ResizeObserver internally and doesn't need to be explicitly notified of resizes.`
0 commit comments