Skip to content

Commit ea896ab

Browse files
authored
explain implementation
1 parent 78ce2e0 commit ea896ab

File tree

1 file changed

+1
-1
lines changed
  • apps/svelte.dev/content/tutorial/02-advanced-svelte/04-advanced-bindings/04-dimensions

1 file changed

+1
-1
lines changed

apps/svelte.dev/content/tutorial/02-advanced-svelte/04-advanced-bindings/04-dimensions/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Dimensions
33
---
44

5-
You can add `clientWidth`, `clientHeight`, `offsetWidth` and `offsetHeight` bindings to any element:
5+
You can add `clientWidth`, `clientHeight`, `offsetWidth` and `offsetHeight` bindings to any element, and Svelte will update the bound values using a [`ResizeObserver`](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver):
66

77
```svelte
88
/// file: App.svelte

0 commit comments

Comments
 (0)