Skip to content

Commit 420dd37

Browse files
committed
Update [Part 2 / Bindings / Dimensions]
README code didn't match the actual scripts, so I updated it to match them.
1 parent 60ab963 commit 420dd37

File tree

1 file changed

+2
-1
lines changed
  • content/tutorial/02-advanced-svelte/05-bindings/04-dimensions

1 file changed

+2
-1
lines changed

content/tutorial/02-advanced-svelte/05-bindings/04-dimensions/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ Every block-level element has `clientWidth`, `clientHeight`, `offsetWidth` and `
77
```svelte
88
/// file: App.svelte
99
<div +++bind:clientWidth={w} bind:clientHeight={h}+++>
10-
<span style="font-size: {size}px">{text}</span>
10+
<span style="font-size: {size}px" contenteditable>{text}</span>
11+
<span class="size">{w} x {h}px</span>
1112
</div>
1213
```
1314

0 commit comments

Comments
 (0)