Skip to content

Commit

Permalink
Zooming should take into account networks bar and history bar for cen…
Browse files Browse the repository at this point in the history
…tre #116
  • Loading branch information
maxkfranz committed Jun 30, 2017
1 parent e5bf3ed commit 2ec7e59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website-ui/js/app-result-shortcuts.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ function( util ){ return function( Result ){

let zoomBy = mult => {
let z = cy.zoom();
let w = cy.width();
let h = cy.height();
let w = cy.width() - (rfn.networksExpanded ? $('#network-list').width() : 0);
let h = cy.height() - (rfn.historyExpanded ? $('#query-history').height() : 0);

cy.zoom({
level: z * mult,
Expand Down

0 comments on commit 2ec7e59

Please sign in to comment.