mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-24 12:05:22 +08:00
Merge pull request #7660 from minrk/overlayHackHack
Reverse hscrollbar min-height hack on OS X
This commit is contained in:
commit
626d93128a
@ -22,6 +22,21 @@ define([
|
||||
// TODO: remove IPython dependency here
|
||||
"use strict";
|
||||
|
||||
var overlayHack = CodeMirror.scrollbarModel.native.prototype.overlayHack;
|
||||
|
||||
CodeMirror.scrollbarModel.native.prototype.overlayHack = function () {
|
||||
overlayHack.apply(this, arguments);
|
||||
// Reverse `min-height: 18px` scrollbar hack on OS X
|
||||
// which causes a dead area, making it impossible to click on the last line
|
||||
// when there is horizontal scrolling to do and the "show scrollbar only when scrolling" behavior
|
||||
// is enabled.
|
||||
// This, in turn, has the undesirable behavior of never showing the horizontal scrollbar,
|
||||
// even when it should, which is less problematic, at least.
|
||||
if (/Mac/.test(navigator.platform)) {
|
||||
this.horiz.style.minHeight = "";
|
||||
}
|
||||
};
|
||||
|
||||
var Cell = function (options) {
|
||||
/* Constructor
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user