From 3dd645133afd3cbdf824d5d5a3fade0ded4655e7 Mon Sep 17 00:00:00 2001 From: Dan Popescu Date: Fri, 2 Dec 2022 22:00:08 +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 ca327a111ef..bbfcb9f336f 100644 --- a/ui/src/components/input/QInput.js +++ b/ui/src/components/input/QInput.js @@ -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