Skip to content

Commit 1e24a6a

Browse files
committed
Forces the width of the minimap wrapper
It allow children of the wrapper to know the width of the display at any time.
1 parent d874477 commit 1e24a6a

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

lib/minimap-view.coffee

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@ class MinimapView extends View
142142
evw = editorViewRect.width
143143
evh = editorViewRect.height
144144

145+
@miniWrapper.css {width}
146+
145147
# VisibleArea's size
146148
@miniVisibleArea.css
147149
width : @indicator.width = width

stylesheets/minimap.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
.minimap-editor {
5252
position: absolute;
5353
cursor: default;
54+
width: 100%;
5455
.accelerated;
5556
.scroll-view {
5657
.accelerated;

0 commit comments

Comments
 (0)