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 3c504c7 commit 3dd6451
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/components/input/QInput.js
Expand Up @@ -309,8 +309,8 @@ export default createComponent({
// but keep the total control size the same
// Firefox rulez #14263, #14344
$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 3dd6451

Please sign in to comment.