@ -1,8 +1,10 @@
< template >
< template >
< div class = "newMessageBanner" >
< div class = "newMessageBanner" >
< label for = "newMessageInput" > < / label >
< label for = "newMessageInput" > < / label >
< textarea @input ="resizeMessageBanner()" ref = "newMessageInput" id = "newMessageInput" class = "newMessageInput" autocomplete = "off" placeholder = "type a message ..." v -model = " msg.content.text " / >
< textarea @input ="resizeMessageBanner()" ref = "newMessageInput" id = "newMessageInput" class = "newMessageInput"
< icon @click.native ="sendMessage()" id = "sendMessageBtn" style = "position: absolute; right: 1rem; bottom: 0.5rem;" ic = "./sym/ic_send_white_24px.svg" / >
autocomplete = "off" placeholder = "type a message ..." v - model = "msg.content.text" / >
< icon @click.native ="sendMessage()" id = "sendMessageBtn" style = "position: absolute; right: 1rem; bottom: 0.5rem;"
ic = "./sym/ic_send_white_24px.svg" / >
< / div >
< / div >
< / template >
< / template >
@ -30,7 +32,7 @@ export default {
id . style . height = ` ${ id . scrollHeight } px `
id . style . height = ` ${ id . scrollHeight } px `
let msgContainer = document . getElementById ( "messagesContainer" )
let msgContainer = document . getElementById ( "messagesContainer" )
msgContainer . style . height
msgContainer . style . height
= ` calc(100% - ${ id . parentElement . clientHeight } px )`
= ` calc(100% - ${ id . parentElement . clientHeight } px - 3rem )`
/ / m s g C o n t a i n e r . s c r o l l T o ( 0 , m s g C o n t a i n e r . s c r o l l H e i g h t )
/ / m s g C o n t a i n e r . s c r o l l T o ( 0 , m s g C o n t a i n e r . s c r o l l H e i g h t )
}
}
} ,
} ,