Skip to content

Commit 37481fb

Browse files
committed
fix: windows scrollbars with wordwrap off was bad render
1 parent 2b0ea36 commit 37481fb

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

src/styles/brackets_codemirror_override.less

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,10 @@ div.CodeMirror-cursors {
151151
}
152152

153153
.platform-win {
154-
.CodeMirror-scrollbar-filler,
154+
.CodeMirror-scrollbar-filler {
155+
background-color: white;
156+
height: 12px !important;
157+
}
155158
.CodeMirror-gutter-filler {
156159
background-color: transparent;
157160
height: 12px !important;

src/styles/brackets_scrollbars.less

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
*
2020
*/
2121

22-
/* Temporary fix for issue#10150 for weird project tree scrollbar behaviour on mac. Scrollbar not appearing on hover. Forcing the project tree div to render displays the scrollbar. So setting transparent background color of div on hover.
22+
/* Temporary fix for issue#10150 for weird project tree scrollbar behaviour on mac. Scrollbar not appearing on hover. Forcing the project tree div to render displays the scrollbar. So setting transparent background color of div on hover.
2323
*/
2424

2525
.platform-mac
@@ -156,9 +156,12 @@
156156
.dark {
157157
/* Custom scrollbar colors */
158158
&.platform-win {
159-
.CodeMirror-scrollbar-filler,
159+
.CodeMirror-scrollbar-filler {
160+
background-color: rgb(30, 30, 30);
161+
}
162+
160163
.CodeMirror-gutter-filler {
161-
background-color: rgb(15, 15, 15);
164+
background-color: transparent;
162165
}
163166

164167
// Note: when changing padding/margins, may need to adjust metrics in ScrollTrackMarkers.js

0 commit comments

Comments
 (0)