Show More
@@ -21,7 +21,22 b' define([' | |||||
21 | ], function(IPython, $, utils, CodeMirror, cm_match, cm_closeb, cm_comment) { |
|
21 | ], function(IPython, $, utils, CodeMirror, cm_match, cm_closeb, cm_comment) { | |
22 | // TODO: remove IPython dependency here |
|
22 | // TODO: remove IPython dependency here | |
23 | "use strict"; |
|
23 | "use strict"; | |
24 |
|
24 | |||
|
25 | var overlayHack = CodeMirror.scrollbarModel.native.prototype.overlayHack; | |||
|
26 | ||||
|
27 | CodeMirror.scrollbarModel.native.prototype.overlayHack = function () { | |||
|
28 | overlayHack.apply(this, arguments); | |||
|
29 | // Reverse `min-height: 18px` scrollbar hack on OS X | |||
|
30 | // which causes a dead area, making it impossible to click on the last line | |||
|
31 | // when there is horizontal scrolling to do and the "show scrollbar only when scrolling" behavior | |||
|
32 | // is enabled. | |||
|
33 | // This, in turn, has the undesirable behavior of never showing the horizontal scrollbar, | |||
|
34 | // even when it should, which is less problematic, at least. | |||
|
35 | if (/Mac/.test(navigator.platform)) { | |||
|
36 | this.horiz.style.minHeight = ""; | |||
|
37 | } | |||
|
38 | }; | |||
|
39 | ||||
25 | var Cell = function (options) { |
|
40 | var Cell = function (options) { | |
26 | /* Constructor |
|
41 | /* Constructor | |
27 | * |
|
42 | * |
General Comments 0
You need to be logged in to leave comments.
Login now