Skip to content

Commit

Permalink
fix(QInput): set margin first and then decrease height to keep parent…
Browse files Browse the repository at this point in the history
… scroll (regressing from fixing firefox undo) quasarframework#15023
  • Loading branch information
pdanpdan committed Dec 2, 2022
1 parent 381ffcf commit f41bd9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/components/input/QInput.js
Expand Up @@ -297,8 +297,8 @@ export default Vue.extend({
// but keep the total control size the same
// Firefox rulez #14263, #14344
this.$q.platform.is.firefox !== true && (inp.style.overflow = 'hidden')
inp.style.height = '1px'
parentStyle.marginBottom = (inp.scrollHeight - 1) + 'px'
inp.style.height = '1px'

inp.style.height = inp.scrollHeight + 'px'
inp.style.overflow = overflow
Expand Down

0 comments on commit f41bd9a

Please sign in to comment.