Skip to content

Commit

Permalink
Add y-scrollbar via body class when pane opens
Browse files Browse the repository at this point in the history
Addresses issue rev087#155 on parent repo: rev087#155
  • Loading branch information
brandonjp committed Feb 4, 2016
1 parent 853a7e6 commit cbb7d19
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/js/InspectorPane.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,12 @@ module.exports = function() {
body.removeChild(pane);
this.clear();
eventListenerBulk(events, true);
body.classList.remove('ngi-open');
return this.visible = false;
} else {
body.appendChild(pane);
eventListenerBulk(events, false);
body.classList.add('ngi-open');
return this.visible = true;
}
};
Expand Down
3 changes: 3 additions & 0 deletions src/less/stylesheet.less
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
}

body {
&.ngi-open {
overflow-y: scroll !important;
}
&.ngi-resize {
cursor: col-resize !important;
}
Expand Down

0 comments on commit cbb7d19

Please sign in to comment.