Skip to content
This repository has been archived by the owner on Dec 13, 2019. It is now read-only.

a problem when use QChatMessage and QScrollArea #593

Open
zsykd03 opened this issue Sep 11, 2018 · 6 comments
Open

a problem when use QChatMessage and QScrollArea #593

zsykd03 opened this issue Sep 11, 2018 · 6 comments

Comments

@zsykd03
Copy link

zsykd03 commented Sep 11, 2018

script...........................................................
updated:function() {
if(this.scroll_flag){
this.$refs.scroll_area.setScrollPosition(this.$refs.chat.offsetHeight,500)
}
},
script...........................................................

this code work perfect in PC ,but it have confusion in mobile,the vue method "setScrollPosition" is not work,so
in mobile device the chat-message list cannot scroll to the bottom of the scroll-area,can you help me? thanks!

@rstoenescu
Copy link
Member

Hello,

What Quasar version are you using?

@zsykd03
Copy link
Author

zsykd03 commented Sep 13, 2018

thanks for answer,I use
Quasar CLI........ v0.17.7
Quasar Framework.. v0.17.6

@zsykd03
Copy link
Author

zsykd03 commented Sep 13, 2018

this is the HTML
<div style="width: 100vw; max-width: 100vw ; " ref="scrollarea" > <q-scroll-area class="fit" ref="scroll_area" > <div class="row justify-center q-pa-sm" > <q-btn push flat rounded color="primary" label="loadmore" :loading="loading" @click="loadingMore" <span slot="loading"> <q-spinner-dots /> </span> </q-btn> </div> <div class="q-pa-sm " ref="chat" > <q-chat-message v-for="(msg, index) in this.messages" :key="avatar-${index}" :label="msg.label" :sent="msg.sent" :name="msg.name" :text="msg.text" :stamp="msg.stamp" /> </div> </q-scroll-area>

@zsykd03
Copy link
Author

zsykd03 commented Sep 18, 2018

@rstoenescu
hello,can you help me ?

@zsykd03
Copy link
Author

zsykd03 commented Sep 26, 2018 via email

@smolinari
Copy link
Contributor

Hi,

The CLI version won't fix your problem. Also, you posted this in the wrong repo.

You might want to put it in the right repo and close this one to get faster replies from the devs.

https://github.com/quasarframework/quasar

Scott

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants