HTML
1<div class="timeline" ref="timeline" onclick="{ clickTimeline }"></div> 2console.log(getComputedStyle(tag.refs.timeline).width) 3console.log(tag.refs.timeline.clientWidth) 4
clientWidthだと0
getComputedStyleだとcalcのまま取得されてしまう
投稿2017/04/13 10:17
HTML
1<div class="timeline" ref="timeline" onclick="{ clickTimeline }"></div> 2console.log(getComputedStyle(tag.refs.timeline).width) 3console.log(tag.refs.timeline.clientWidth) 4
clientWidthだと0
getComputedStyleだとcalcのまま取得されてしまう
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。