回答編集履歴
3
0
test
CHANGED
@@ -36,7 +36,7 @@
|
|
36
36
|
|
37
37
|
this.setState({ height: this.toph.clientHeight })
|
38
38
|
|
39
|
-
})
|
39
|
+
}, 0)
|
40
40
|
|
41
41
|
}
|
42
42
|
|
2
修正
test
CHANGED
@@ -32,7 +32,7 @@
|
|
32
32
|
|
33
33
|
global.setTimeout(() => {
|
34
34
|
|
35
|
-
console.log(t
|
35
|
+
console.log(this.toph.clientHeight)
|
36
36
|
|
37
37
|
this.setState({ height: this.toph.clientHeight })
|
38
38
|
|
1
修正
test
CHANGED
@@ -64,7 +64,7 @@
|
|
64
64
|
|
65
65
|
<section>
|
66
66
|
|
67
|
-
<div ref={assignRefOfToph} onClick={this.clicks}>
|
67
|
+
<div ref={this.assignRefOfToph} onClick={this.clicks}>
|
68
68
|
|
69
69
|
a<br />b
|
70
70
|
|