File tree Expand file tree Collapse file tree 5 files changed +33
-6
lines changed Expand file tree Collapse file tree 5 files changed +33
-6
lines changed Original file line number Diff line number Diff line change 3
3
<div
4
4
v-if =" filteredEmojis.length"
5
5
class =" vac-emojis-container"
6
- :style =" { bottom: `${$parent.$refs.roomFooter.clientHeight }px` }"
6
+ :style =" { bottom: `${footerHeight }px` }"
7
7
>
8
8
<div
9
9
v-for =" (emoji, index) in filteredEmojis"
@@ -37,6 +37,12 @@ export default {
37
37
}
38
38
},
39
39
40
+ computed: {
41
+ footerHeight () {
42
+ return document .getElementById (' room-footer' ).clientHeight
43
+ }
44
+ },
45
+
40
46
watch: {
41
47
filteredEmojis () {
42
48
this .activeItem = 0
Original file line number Diff line number Diff line change 3
3
<div
4
4
v-if =" files.length"
5
5
class =" vac-room-files-container"
6
- :style =" { bottom: `${$parent.$refs.roomFooter.clientHeight }px` }"
6
+ :style =" { bottom: `${footerHeight }px` }"
7
7
>
8
8
<div class =" vac-files-box" >
9
9
<div v-for =" (file, i) in files" :key =" i" >
@@ -42,6 +42,12 @@ export default {
42
42
files: { type: Array , required: true }
43
43
},
44
44
45
- emits: [' remove-file' , ' reset-message' ]
45
+ emits: [' remove-file' , ' reset-message' ],
46
+
47
+ computed: {
48
+ footerHeight () {
49
+ return document .getElementById (' room-footer' ).clientHeight
50
+ }
51
+ }
46
52
}
47
53
</script >
Original file line number Diff line number Diff line change 3
3
<div
4
4
v-if =" messageReply"
5
5
class =" vac-reply-container"
6
- :style =" { bottom: `${$parent.$refs.roomFooter.clientHeight }px` }"
6
+ :style =" { bottom: `${footerHeight }px` }"
7
7
>
8
8
<div class =" vac-reply-box" >
9
9
<div class =" vac-reply-info" >
@@ -100,6 +100,9 @@ export default {
100
100
emits: [' reset-message' ],
101
101
102
102
computed: {
103
+ footerHeight () {
104
+ return document .getElementById (' room-footer' ).clientHeight
105
+ },
103
106
firstFile () {
104
107
return this .messageReply .files ? .length ? this .messageReply .files [0 ] : {}
105
108
},
Original file line number Diff line number Diff line change 3
3
<div
4
4
v-if =" filteredTemplatesText.length"
5
5
class =" vac-template-container vac-app-box-shadow"
6
- :style =" { bottom: `${$parent.$refs.roomFooter.clientHeight }px` }"
6
+ :style =" { bottom: `${footerHeight }px` }"
7
7
>
8
8
<div
9
9
v-for =" (template, index) in filteredTemplatesText"
@@ -44,6 +44,12 @@ export default {
44
44
}
45
45
},
46
46
47
+ computed: {
48
+ footerHeight () {
49
+ return document .getElementById (' room-footer' ).clientHeight
50
+ }
51
+ },
52
+
47
53
watch: {
48
54
filteredTemplatesText () {
49
55
this .activeItem = 0
Original file line number Diff line number Diff line change 3
3
<div
4
4
v-if =" filteredUsersTag.length"
5
5
class =" vac-tags-container"
6
- :style =" { bottom: `${$parent.$refs.roomFooter.clientHeight }px` }"
6
+ :style =" { bottom: `${footerHeight }px` }"
7
7
>
8
8
<div
9
9
v-for =" (user, index) in filteredUsersTag"
@@ -46,6 +46,12 @@ export default {
46
46
}
47
47
},
48
48
49
+ computed: {
50
+ footerHeight () {
51
+ return document .getElementById (' room-footer' ).clientHeight
52
+ }
53
+ },
54
+
49
55
watch: {
50
56
filteredUsersTag () {
51
57
this .activeItem = 0
You can’t perform that action at this time.
0 commit comments