Bug 931041 - Bring back floating scrollbars in the editor. r=anton, r=paul, a=bajaj
authorGirish Sharma <scrapmachines@gmail.com>
Tue, 12 Nov 2013 15:51:37 +0530
changeset 166541 ca13c2892cc0676ffc1af559696536e06e4b0b1c
parent 166540 40dd183c2a20182490057bac03eb566348724111
child 166542 5b41730c0818af79d044f401baf26757346c06bb
push id3066
push userakeybl@mozilla.com
push dateMon, 09 Dec 2013 19:58:46 +0000
treeherdermozilla-beta@a31a0dce83aa [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersanton, paul, bajaj
bugs931041
milestone27.0a2
Bug 931041 - Bring back floating scrollbars in the editor. r=anton, r=paul, a=bajaj
browser/devtools/sourceeditor/codemirror/mozilla.css
--- a/browser/devtools/sourceeditor/codemirror/mozilla.css
+++ b/browser/devtools/sourceeditor/codemirror/mozilla.css
@@ -33,8 +33,24 @@
 .breakpoint.debugLocation {
   background-image: url("chrome://browser/skin/devtools/orion-debug-location.png"),
     url("chrome://browser/skin/devtools/orion-breakpoint.png");
 }
 
 .error-line {
   background: rgba(255,0,0,0.2);
 }
+
+/* This is to avoid the fake horizontal scrollbar div of codemirror to go 0
+height when floating scrollbars are active. Make sure that this value is equal
+to the maximum of `min-height` specific to the `scrollbar[orient="horizontal"]`
+selector in floating-scrollbar-light.css across all platforms. */
+.CodeMirror-hscrollbar {
+  min-height: 10px;
+}
+
+/* This is to avoid the fake vertical scrollbar div of codemirror to go 0
+width when floating scrollbars are active. Make sure that this value is equal
+to the maximum of `min-width` specific to the `scrollbar[orient="vertical"]`
+selector in floating-scrollbar-light.css across all platforms. */
+.CodeMirror-vscrollbar {
+  min-width: 10px;
+}