mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-29 17:27:22 +02:00
Firefox prompt huge fix, Issue #59
This commit is contained in:
parent
a7c2b8936c
commit
d17d131d24
7 changed files with 18 additions and 10 deletions
|
@ -19580,7 +19580,7 @@ var CommandPromptView = Backbone.View.extend({
|
|||
},
|
||||
|
||||
onKeyDown: function(e) {
|
||||
var el = e.srcElement;
|
||||
var el = e.srcElement || e.currentTarget;
|
||||
this.updatePrompt(el);
|
||||
},
|
||||
|
||||
|
@ -19637,7 +19637,7 @@ var CommandPromptView = Backbone.View.extend({
|
|||
|
||||
cursorUpdate: function(commandLength, selectionStart, selectionEnd) {
|
||||
if (selectionStart === undefined || selectionEnd === undefined) {
|
||||
selectionStart = commandLength - 1;
|
||||
selectionStart = Math.max(commandLength - 1, 0);
|
||||
selectionEnd = commandLength;
|
||||
}
|
||||
|
||||
|
@ -26203,7 +26203,7 @@ var CommandPromptView = Backbone.View.extend({
|
|||
},
|
||||
|
||||
onKeyDown: function(e) {
|
||||
var el = e.srcElement;
|
||||
var el = e.srcElement || e.currentTarget;
|
||||
this.updatePrompt(el);
|
||||
},
|
||||
|
||||
|
@ -26260,7 +26260,7 @@ var CommandPromptView = Backbone.View.extend({
|
|||
|
||||
cursorUpdate: function(commandLength, selectionStart, selectionEnd) {
|
||||
if (selectionStart === undefined || selectionEnd === undefined) {
|
||||
selectionStart = commandLength - 1;
|
||||
selectionStart = Math.max(commandLength - 1, 0);
|
||||
selectionEnd = commandLength;
|
||||
}
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
2
build/bundle.min.js
vendored
2
build/bundle.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -1049,6 +1049,10 @@ div.gitDemonstrationView {
|
|||
height: 100%;
|
||||
}
|
||||
|
||||
#commandLineBar {
|
||||
min-height: 30px;
|
||||
}
|
||||
|
||||
#interfaceWrapper {
|
||||
width: 100%;
|
||||
height: 100%;
|
|
@ -13,7 +13,7 @@
|
|||
<meta property="og:image" content="http://pcottle.github.com/learnGitBranching/assets/learnGitBranching.png"/>
|
||||
<meta property="og:description" content="A interactive Git visualization tool to educate and challenge!"/>
|
||||
|
||||
<link rel="stylesheet" href="build/main.c4a547fb.css" type="text/css" charset="utf-8">
|
||||
<link rel="stylesheet" href="build/main.fd4e7757.css" type="text/css" charset="utf-8">
|
||||
<link rel="stylesheet" href="src/style/font-awesome.css" type="text/css" charset="utf-8">
|
||||
</head>
|
||||
<body>
|
||||
|
@ -412,7 +412,7 @@
|
|||
For a much easier time perusing the source, see the individual files at:
|
||||
https://github.com/pcottle/learnGitBranching
|
||||
-->
|
||||
<script src="build/bundle.min.b47122e1.js"></script>
|
||||
<script src="build/bundle.min.9d2f4d92.js"></script>
|
||||
|
||||
<!-- The advantage of github pages: super-easy, simple, slick static hostic.
|
||||
The downside? No raw logs to parse for analytics, so I have to include
|
||||
|
|
|
@ -74,7 +74,7 @@ var CommandPromptView = Backbone.View.extend({
|
|||
},
|
||||
|
||||
onKeyDown: function(e) {
|
||||
var el = e.srcElement;
|
||||
var el = e.srcElement || e.currentTarget;
|
||||
this.updatePrompt(el);
|
||||
},
|
||||
|
||||
|
@ -131,7 +131,7 @@ var CommandPromptView = Backbone.View.extend({
|
|||
|
||||
cursorUpdate: function(commandLength, selectionStart, selectionEnd) {
|
||||
if (selectionStart === undefined || selectionEnd === undefined) {
|
||||
selectionStart = commandLength - 1;
|
||||
selectionStart = Math.max(commandLength - 1, 0);
|
||||
selectionEnd = commandLength;
|
||||
}
|
||||
|
||||
|
|
|
@ -1049,6 +1049,10 @@ div.gitDemonstrationView {
|
|||
height: 100%;
|
||||
}
|
||||
|
||||
#commandLineBar {
|
||||
min-height: 30px;
|
||||
}
|
||||
|
||||
#interfaceWrapper {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue