Skip to content

Commit

Permalink
fix: input height on translate dialog when empty
Browse files Browse the repository at this point in the history
Signed-off-by: Luka Trovic <[email protected]>
  • Loading branch information
luka-nextcloud committed Jun 16, 2023
1 parent 181c2d1 commit e49fe81
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/Modal/Translate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,9 @@ export default {
},
autosize() {
this.$refs.input.style.height = 'auto'
this.$refs.input.style.height = this.$refs.input.scrollHeight + 'px'
this.$refs.result.style.height = this.$refs.input.scrollHeight + 'px'
const height = this.$refs.input.scrollHeight
this.$refs.input.style.height = height + 'px'
this.$refs.result.style.height = height + 'px'
},
onInputFocus() {
this.disableFromLanguageSelect = false
Expand Down

0 comments on commit e49fe81

Please sign in to comment.