From 7cf5a481f9125adf5381f70a0ed59a893fc09ccd Mon Sep 17 00:00:00 2001 From: Popescu Dan Date: Fri, 16 Dec 2022 13:15:37 +0200 Subject: [PATCH] fix(QInput): set margin first and then decrease height to keep parent scroll (regressing from fixing firefox undo) #15023 (#15046) --- 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