From 36e5ac74dc7d8da69e4e0b9a9aad372108c06359 Mon Sep 17 00:00:00 2001 From: Paulo Reis Date: Wed, 15 Feb 2017 15:11:01 +0000 Subject: [PATCH] Give the scrollbar a background-color, so that Safari knows that it should paint it. --- services/web/public/stylesheets/app/editor.less | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/services/web/public/stylesheets/app/editor.less b/services/web/public/stylesheets/app/editor.less index 250269a7a2..fdf18d7b38 100644 --- a/services/web/public/stylesheets/app/editor.less +++ b/services/web/public/stylesheets/app/editor.less @@ -181,6 +181,19 @@ } } +// Hack to solve an issue where scrollbars aren't visible in Safari. +// Safari seems to clip part of the scrollbar element. By giving the +// element a background, we're telling Safari that it *really* needs to +// paint the whole area. See https://github.com/ajaxorg/ace/issues/2872 +.ace_scrollbar-inner { + background-color: #FFF; + opacity: 0.01; + + .ace_dark & { + background-color: #000; + } +} + .ui-layout-resizer { width: 6px; background-color: #f4f4f4;