Skip to content

Commit

Permalink
fix(ui): LoggerView scrollToBottom
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Chau committed Mar 9, 2018
1 parent 9f0eece commit 6c2e99a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/@vue/cli-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"stylus-loader": "^3.0.1",
"subscriptions-transport-ws": "^0.9.5",
"vue": "^2.5.13",
"vue-apollo": "^3.0.0-alpha.1",
"vue-apollo": "^3.0.0-beta.5",
"vue-cli-plugin-apollo": "^0.4.1",
"vue-router": "^3.0.1",
"vue-template-compiler": "^2.5.13",
Expand Down
4 changes: 2 additions & 2 deletions packages/@vue/cli-ui/src/components/LoggerView.vue
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
<template>
<div class="logger-view">
<ApolloQuery
ref="logs"
:query="require('../graphql/consoleLogs.gql')"
fetch-policy="cache-and-network"
class="logs"
@result="scrollToBottom()"
>
<ApolloSubscribeToMore
ref="logs"
:document="require('../graphql/consoleLogAdded.gql')"
:update-query="onConsoleLogAdded"
/>
Expand Down Expand Up @@ -48,7 +49,6 @@ export default {
await this.$nextTick()
const list = this.$refs.logs.$el
list.scrollTop = list.scrollHeight
console.log(list.scrollHeight)
},
clearLogs () {
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10608,9 +10608,9 @@ vm-browserify@0.0.4:
dependencies:
indexof "0.0.1"

vue-apollo@^3.0.0-alpha.1:
version "3.0.0-beta.4"
resolved "https://registry.yarnpkg.com/vue-apollo/-/vue-apollo-3.0.0-beta.4.tgz#2313f720875160befc22375c13a74c0bc2e87030"
vue-apollo@^3.0.0-beta.5:
version "3.0.0-beta.5"
resolved "https://registry.yarnpkg.com/vue-apollo/-/vue-apollo-3.0.0-beta.5.tgz#d0aabd19683e50cd1ab2d24e2827e8fb579ff78e"
dependencies:
lodash.debounce "^4.0.8"
lodash.omit "^4.5.0"
Expand Down

0 comments on commit 6c2e99a

Please sign in to comment.