Skip to content

Commit

Permalink
fixed scrollbars
Browse files Browse the repository at this point in the history
  • Loading branch information
stevewirts committed Nov 5, 2015
1 parent f516921 commit 955c2a2
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 6 deletions.
19 changes: 17 additions & 2 deletions fin-hypergrid.dev.html
Original file line number Diff line number Diff line change
Expand Up @@ -13890,7 +13890,7 @@
isRightClick: this.isRightClick(e)
}
}));
//console.log('dblclick', this.currentKeys);
console.log('dblclick', this.currentKeys);
},

getCharMap: function() {
Expand Down Expand Up @@ -32430,6 +32430,8 @@
this.initRenderer();
this.initScrollbars();

this.checkScrollbarVisibility();

//Register a listener for the copy event so we can copy our selected region to the pastebuffer if conditions are right.
document.body.addEventListener('copy', function(evt) {
self.checkClipboardCopy(evt);
Expand All @@ -32444,6 +32446,18 @@

},

checkScrollbarVisibility: function() {
var hoverClassOver = this.resolveProperty('scrollbarHoverOver');
var hoverClassOff = this.resolveProperty('scrollbarHoverOff');

if (hoverClassOff === 'visible') {
this.sbHScroller.classList.remove(hoverClassOver);
this.sbVScroller.classList.remove(hoverClassOff);
this.sbHScroller.classList.add('visible');
this.sbVScroller.classList.add('visible');
}
},

initializeCellEditor: function(cellEditorName) {
initializeCellEditor(cellEditorName);
},
Expand Down Expand Up @@ -32597,6 +32611,7 @@
console.log('refresh rate = ' + interval);
this.canvas.setAttribute('fps', interval);
this.canvas.setAttribute('bitblit', useBitBlit === true);
this.checkScrollbarVisibility();
},

/**
Expand Down Expand Up @@ -33149,7 +33164,7 @@
this.canvas.style.right = '-200px';
//leave room for the vertical scrollbar
//this.canvas.style.marginRight = '15px';
this.canvas.style.bottom = 0;
this.canvas.style.bottom = '7px';
//leave room for the horizontal scrollbar
//this.canvas.style.marginBottom = '15px';
this.canvas.style.left = 0;
Expand Down
Loading

0 comments on commit 955c2a2

Please sign in to comment.