From 521ad7a1160e749479fe0cd29ec5b309b9b9e71e Mon Sep 17 00:00:00 2001 From: Dan Popescu Date: Fri, 2 Dec 2022 21:57:59 +0200 Subject: [PATCH] fix(QInput): set margin first and then decrease height to keep parent scroll (regressing from fixing firefox undo) #15023 --- ui/src/components/input/QInput.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/components/input/QInput.js b/ui/src/components/input/QInput.js index 5a3b539db74..56b0253e03d 100644 --- a/ui/src/components/input/QInput.js +++ b/ui/src/components/input/QInput.js @@ -333,8 +333,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