Scroll bar FF fixes Issue #51

This commit is contained in:
Peter Cottle 2013-02-21 09:12:32 -08:00
parent d1962d2a2e
commit f8a92580bd
7 changed files with 27 additions and 8 deletions

View file

@ -18388,7 +18388,13 @@ var CommandLineHistoryView = Backbone.View.extend({
var cD = $('#commandDisplay')[0];
var t = $('#terminal')[0];
var shouldScroll = (cD.clientHeight > t.clientHeight);
console.log('I AM CHECKING scroll ehight');
console.log(cD, t);
console.log(cD.clientHeight, t.clientHeight);
// firefox hack
var shouldScroll = (cD.clientHeight > t.clientHeight) ||
($(window).height() < cD.clientHeight);
$(t).toggleClass('scrolling', shouldScroll);
if (shouldScroll) {
t.scrollTop = t.scrollHeight;
@ -24461,7 +24467,13 @@ var CommandLineHistoryView = Backbone.View.extend({
var cD = $('#commandDisplay')[0];
var t = $('#terminal')[0];
var shouldScroll = (cD.clientHeight > t.clientHeight);
console.log('I AM CHECKING scroll ehight');
console.log(cD, t);
console.log(cD.clientHeight, t.clientHeight);
// firefox hack
var shouldScroll = (cD.clientHeight > t.clientHeight) ||
($(window).height() < cD.clientHeight);
$(t).toggleClass('scrolling', shouldScroll);
if (shouldScroll) {
t.scrollTop = t.scrollHeight;

File diff suppressed because one or more lines are too long

2
build/bundle.min.js vendored

File diff suppressed because one or more lines are too long

View file

@ -589,7 +589,7 @@ li.rebaseEntry a#toggleButton {
position: relative;
font-size: 14px;
top: -5px;
right; -5px;
right: -5px;
}
li.rebaseEntry.notPicked {