diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-02-16 08:22:09 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-02-16 08:22:09 +0900 |
| commit | 3cd5abe78c3accd76fb1b05283edb000b89895fa (patch) | |
| tree | 5663115d1bdb6cbd4d929d19e31afa4c83c9e645 /src | |
| parent | [Client] Messagingをいろいろ (diff) | |
| download | sharkey-3cd5abe78c3accd76fb1b05283edb000b89895fa.tar.gz sharkey-3cd5abe78c3accd76fb1b05283edb000b89895fa.tar.bz2 sharkey-3cd5abe78c3accd76fb1b05283edb000b89895fa.zip | |
[Client] Fix bug
Diffstat (limited to 'src')
| -rw-r--r-- | src/web/app/common/tags/messaging/room.tag | 8 |
1 files 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 |