From 4ab3498892299b246bdf6af8ef1029349160c3db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Wed, 6 Nov 2019 20:26:26 +0100 Subject: [PATCH] Avoid jumping CKEditor This is a hack: we're making the textarea have the same size as CKEditor so when it's replaced the page won't jump. A very similar hack was removed in commit e844b0b2. Back then I thought this was a small issue we could live with, but the user experience turns out to be a bit annoying, and it makes tests fail sometimes because Capybara is trying to click something when the page jumps, and so it misses the click. --- app/assets/stylesheets/layout.scss | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/assets/stylesheets/layout.scss b/app/assets/stylesheets/layout.scss index 85a5a304f..ccf1b9221 100644 --- a/app/assets/stylesheets/layout.scss +++ b/app/assets/stylesheets/layout.scss @@ -1076,6 +1076,15 @@ form { margin-bottom: $line-height; } + .html-area { + height: 272px; + margin-bottom: $line-height; + + &.admin { + height: 572px; + } + } + .checkbox, .radio { display: inline-block;