From 365dba6006d754b89742ff9b6357d38659b24b8d Mon Sep 17 00:00:00 2001 From: Ryan Griffith Date: Tue, 23 Apr 2013 10:16:28 -0300 Subject: [PATCH] Adjust fold-widget visibility based on folding-enabled Slight adjustment to the visibility of `.ace_fold-widget` so that when the `.ace_folding-enabled` flag is toggled, so is the widget's visibility. This addresses the issue where the left-most edge of the folding widgets may still be visible after disabling code. folding --- lib/ace/css/editor.css | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/ace/css/editor.css b/lib/ace/css/editor.css index 834ca301..246ff810 100644 --- a/lib/ace/css/editor.css +++ b/lib/ace/css/editor.css @@ -284,7 +284,7 @@ box-sizing: border-box; margin: 0 -12px 0 1px; - display: inline-block; + display: none; width: 11px; vertical-align: top; @@ -296,6 +296,10 @@ border: 1px solid transparent; } + + .ace_folding-enabled .ace_fold-widget { + display: inline-block; + } .ace_fold-widget.ace_end { background-image: url("data:image/png,%89PNG%0D%0A%1A%0A%00%00%00%0DIHDR%00%00%00%05%00%00%00%05%08%06%00%00%00%8Do%26%E5%00%00%004IDATx%DAm%C7%C1%09%000%08C%D1%8C%ECE%C8E(%8E%EC%02)%1EZJ%F1%C1'%04%07I%E1%E5%EE%CAL%F5%A2%99%99%22%E2%D6%1FU%B5%FE0%D9x%A7%26Wz5%0E%D5%00%00%00%00IEND%AEB%60%82");