Skip to content

Commit

Permalink
Merge pull request #413 from noseglid/resize-no-panel-heading
Browse files Browse the repository at this point in the history
Use resizer when calculatin resize
  • Loading branch information
noseglid committed Apr 29, 2016
2 parents 10934ae + 9553b4c commit 483e6e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/build-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export default class BuildView extends View {

switch (atom.config.get('build.panelOrientation')) {
case 'Bottom': {
const delta = this.panelHeading.get(0).getBoundingClientRect().top - ev.y;
const delta = this.resizer.get(0).getBoundingClientRect().top - ev.y;
if (Math.abs(delta) < (h * 5 / 6)) return;

const nearestRowHeight = Math.round((this.terminalEl.height() + delta) / h) * h;
Expand Down

0 comments on commit 483e6e1

Please sign in to comment.