mirror of
https://github.com/jupyter/notebook.git
synced 2025-03-13 13:17:50 +08:00
commit
9f7ee6830e
@ -949,7 +949,7 @@ define([
|
||||
|
||||
ActionHandler.prototype.get_name = function(name_or_data){
|
||||
/**
|
||||
* given an `action` or `name` of a action, return the name attached to this action.
|
||||
* given an `action` or `name` of an action, return the name attached to this action.
|
||||
* if given the name of and corresponding actions does not exist in registry, return `null`.
|
||||
**/
|
||||
|
||||
|
@ -114,7 +114,7 @@ define([
|
||||
if (threshold <=0) {
|
||||
return false;
|
||||
}
|
||||
// line-height from http://stackoverflow.com/questions/1185151
|
||||
// line-height from https://stackoverflow.com/questions/1185151
|
||||
var fontSize = this.element.css('font-size') || '14px';
|
||||
var lineHeight = Math.floor((parseFloat(fontSize.replace('px','')) || 14) * 1.3);
|
||||
return (this.element.height() > threshold * lineHeight);
|
||||
@ -399,7 +399,7 @@ define([
|
||||
// Once the iframe is loaded, the subarea is dynamically inserted
|
||||
iframe.on('load', function() {
|
||||
// Workaround needed by Firefox, to properly render svg inside
|
||||
// iframes, see http://stackoverflow.com/questions/10177190/
|
||||
// iframes, see https://stackoverflow.com/questions/10177190/
|
||||
// svg-dynamically-added-to-iframe-does-not-render-correctly
|
||||
this.contentDocument.open();
|
||||
|
||||
|
@ -80,7 +80,7 @@ define([
|
||||
var mac_humanize_map = {
|
||||
// all these are unicode, will probably display badly on anything except macs.
|
||||
// these are the standard symbol that are used in MacOS native menus
|
||||
// cf http://apple.stackexchange.com/questions/55727/
|
||||
// cf https://apple.stackexchange.com/questions/55727/
|
||||
// for htmlentities and/or unicode value
|
||||
'cmd':'⌘',
|
||||
'shift':'⇧',
|
||||
|
@ -491,7 +491,7 @@ define([
|
||||
// The dragleave event is fired when we hover a child element (which
|
||||
// is often immediatly after we got the dragenter), so we keep track
|
||||
// of the number of dragenter/dragleave we got, as discussed here :
|
||||
// http://stackoverflow.com/q/7110353/116067
|
||||
// https://stackoverflow.com/q/7110353/116067
|
||||
// This doesn't seem to be 100% reliable, so we clear the dropzone
|
||||
// class when the cell is rendered as well
|
||||
this.code_mirror.on("dragenter", function(cm, evt) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user