From 3cd5abe78c3accd76fb1b05283edb000b89895fa Mon Sep 17 00:00:00 2001 From: syuilo <syuilotan@yahoo.co.jp> Date: Thu, 16 Feb 2017 08:22:09 +0900 Subject: [PATCH] [Client] Fix bug --- src/web/app/common/tags/messaging/room.tag | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/web/app/common/tags/messaging/room.tag b/src/web/app/common/tags/messaging/room.tag index 3acfc14b0e..237be36d47 100644 --- a/src/web/app/common/tags/messaging/room.tag +++ b/src/web/app/common/tags/messaging/room.tag @@ -1,5 +1,5 @@ <mk-messaging-room> - <div class="stream" ref="stream"> + <div class="stream"> <p class="initializing" if={ init }><i class="fa fa-spinner fa-spin"></i>読み込み中</p> <p class="empty" if={ !init && messages.length == 0 }><i class="fa fa-info-circle"></i>このユーザーとまだ会話したことがありません</p> <virtual each={ message, i in messages }> @@ -191,12 +191,12 @@ @update! @is-bottom = ~> - current = @refs.stream.scroll-top + @refs.stream.offset-height - max = @refs.stream.scroll-height + current = @root.scroll-top + @root.offset-height + max = @root.scroll-height current > (max - 32) @scroll-to-bottom = ~> - @refs.stream.scroll-top = @refs.stream.scroll-height + @root.scroll-top = @root.scroll-height @notify = (message) ~> n = document.create-element \p