reset content scroll position
This commit is contained in:
parent
e61fcdbe49
commit
44b5a6a67f
2 changed files with 4 additions and 0 deletions
|
|
@ -219,6 +219,7 @@
|
|||
</b-popover>
|
||||
</div>
|
||||
<div v-if="itemSelected"
|
||||
ref="content"
|
||||
class="content px-4 pt-3 pb-5 border-top overflow-auto"
|
||||
:style="{'font-family': theme.font, 'font-size': theme.size + 'rem'}">
|
||||
<h3>{{itemSelectedDetails.title}}</h3>
|
||||
|
|
|
|||
|
|
@ -243,6 +243,9 @@ var vm = new Vue({
|
|||
this.itemSelectedDetails = null
|
||||
return
|
||||
}
|
||||
if (this.$refs.content) {
|
||||
this.$refs.content.scrollTop = 0
|
||||
}
|
||||
this.itemSelectedDetails = this.itemsById[newVal]
|
||||
if (this.itemSelectedDetails.status == 'unread') {
|
||||
this.itemSelectedDetails.status = 'read'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue