Show More
@@ -22,6 +22,21 define([ | |||
|
22 | 22 | // TODO: remove IPython dependency here |
|
23 | 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 | 40 | var Cell = function (options) { |
|
26 | 41 | /* Constructor |
|
27 | 42 | * |
General Comments 0
You need to be logged in to leave comments.
Login now